void loadDocument(InputStream in, String encoding, DocumentListener documentListener) throws IOException {
textViewerDelegate.loadDocument(in, encoding, documentListener);
}
private void write(OutputStream out) throws IOException {
textEditorImpl.write(new BOMWriter(out, textViewerDelegate.getEncoding()));
}