Search in sources :

Example 1 with XMLDocumentCharsetDetector

use of org.eclipse.wst.xml.core.internal.encoding.XMLDocumentCharsetDetector in project webtools.sourceediting by eclipse.

the class DTDDocumentCharsetDetector method parseInput.

/**
 */
protected void parseInput() throws IOException {
    IDocumentCharsetDetector documentEncodingDetector = new XMLDocumentCharsetDetector();
    documentEncodingDetector.set(fReader);
    fEncodingMemento = ((XMLResourceEncodingDetector) documentEncodingDetector).getEncodingMemento();
}
Also used : IDocumentCharsetDetector(org.eclipse.wst.sse.core.internal.document.IDocumentCharsetDetector) XMLDocumentCharsetDetector(org.eclipse.wst.xml.core.internal.encoding.XMLDocumentCharsetDetector)

Aggregations

IDocumentCharsetDetector (org.eclipse.wst.sse.core.internal.document.IDocumentCharsetDetector)1 XMLDocumentCharsetDetector (org.eclipse.wst.xml.core.internal.encoding.XMLDocumentCharsetDetector)1