Search in sources :

Example 6 with HTMLResourceEncodingDetector

use of org.eclipse.wst.html.core.internal.contenttype.HTMLResourceEncodingDetector in project webtools.sourceediting by eclipse.

the class HTMLEncodingTests method testNormalNonDefault.

public void testNormalNonDefault() throws IOException {
    String filename = fileLocation + "NormalNonDefault.html";
    String ianaInFile = "UTF-8";
    doTestFileStream(filename, ianaInFile, new HTMLResourceEncodingDetector());
}
Also used : HTMLResourceEncodingDetector(org.eclipse.wst.html.core.internal.contenttype.HTMLResourceEncodingDetector)

Example 7 with HTMLResourceEncodingDetector

use of org.eclipse.wst.html.core.internal.contenttype.HTMLResourceEncodingDetector in project webtools.sourceediting by eclipse.

the class HTMLEncodingTests method testnoquotes.

public void testnoquotes() throws IOException {
    String filename = fileLocation + "noquotes.html";
    doTestFileStream(filename, "UTF-8", new HTMLResourceEncodingDetector());
}
Also used : HTMLResourceEncodingDetector(org.eclipse.wst.html.core.internal.contenttype.HTMLResourceEncodingDetector)

Example 8 with HTMLResourceEncodingDetector

use of org.eclipse.wst.html.core.internal.contenttype.HTMLResourceEncodingDetector in project webtools.sourceediting by eclipse.

the class HTMLEncodingTests method testUTF16LENoQuotes.

public void testUTF16LENoQuotes() throws IOException {
    String filename = fileLocation + "noquotesUTF16le.html";
    doTestFileStream(filename, "UTF-16LE", new HTMLResourceEncodingDetector());
}
Also used : HTMLResourceEncodingDetector(org.eclipse.wst.html.core.internal.contenttype.HTMLResourceEncodingDetector)

Example 9 with HTMLResourceEncodingDetector

use of org.eclipse.wst.html.core.internal.contenttype.HTMLResourceEncodingDetector in project webtools.sourceediting by eclipse.

the class HTMLEncodingTests method testUTF16BOM.

public void testUTF16BOM() throws IOException {
    String filename = this.fileLocation + "utf16BOM.html";
    doTestFileStream(filename, "UTF-16", new HTMLResourceEncodingDetector());
}
Also used : HTMLResourceEncodingDetector(org.eclipse.wst.html.core.internal.contenttype.HTMLResourceEncodingDetector)

Example 10 with HTMLResourceEncodingDetector

use of org.eclipse.wst.html.core.internal.contenttype.HTMLResourceEncodingDetector in project webtools.sourceediting by eclipse.

the class HTMLEncodingTests method testUTF16BE.

public void testUTF16BE() throws IOException {
    String filename = fileLocation + "utf16be.html";
    doTestFileStream(filename, "UTF-16BE", new HTMLResourceEncodingDetector());
}
Also used : HTMLResourceEncodingDetector(org.eclipse.wst.html.core.internal.contenttype.HTMLResourceEncodingDetector)

Aggregations

HTMLResourceEncodingDetector (org.eclipse.wst.html.core.internal.contenttype.HTMLResourceEncodingDetector)11 BufferedInputStream (java.io.BufferedInputStream)1 File (java.io.File)1 FileInputStream (java.io.FileInputStream)1 InputStream (java.io.InputStream)1 EncodingMemento (org.eclipse.wst.sse.core.internal.encoding.EncodingMemento)1