private byte[] getData(ScrollPane pane, TextArea area) {
		byte[] data = null;
		switch (pane.getEditorType()) {
		case ASCII:
			data = this.getDataASCII(area);
			break;
		case UTF8:
			data = this.getDataUTF8(area);
			break;
		case HEX:
			data = this.getDataHex(area);
			break;
		case BINARY:
			data = this.getDataBinary(area);
			break;
		case UTF16:
			data = this.getDataUTF16(area);
			break;
		default:
			data = this.getDataDefaultEncoding(area);
		}
		if (data == null) {
			data = this.getDataDefaultEncoding(area);
		}
		return data;
	}