Search in sources :

Example 11 with CSSResourceEncodingDetector

use of org.eclipse.wst.css.core.internal.contenttype.CSSResourceEncodingDetector in project webtools.sourceediting by eclipse.

the class CSSEncodingTester method testUTF16BOM.

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

Example 12 with CSSResourceEncodingDetector

use of org.eclipse.wst.css.core.internal.contenttype.CSSResourceEncodingDetector in project webtools.sourceediting by eclipse.

the class CSSEncodingTester method testUTF16le.

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

Example 13 with CSSResourceEncodingDetector

use of org.eclipse.wst.css.core.internal.contenttype.CSSResourceEncodingDetector in project webtools.sourceediting by eclipse.

the class CSSEncodingTester method testEmptyFile.

public void testEmptyFile() throws IOException {
    String filename = fileLocation + "emptyFile.css";
    doTestFileStream(filename, null, new CSSResourceEncodingDetector());
}
Also used : CSSResourceEncodingDetector(org.eclipse.wst.css.core.internal.contenttype.CSSResourceEncodingDetector)

Example 14 with CSSResourceEncodingDetector

use of org.eclipse.wst.css.core.internal.contenttype.CSSResourceEncodingDetector in project webtools.sourceediting by eclipse.

the class CSSEncodingTester method testUTF16beMalformed.

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

Aggregations

CSSResourceEncodingDetector (org.eclipse.wst.css.core.internal.contenttype.CSSResourceEncodingDetector)14 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