Search in sources :

Example 6 with CSSResourceEncodingDetector

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

the class CSSEncodingTester method testNoEncoding.

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

Example 7 with CSSResourceEncodingDetector

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

the class CSSEncodingTester method testnonStandardIllFormed.

public void testnonStandardIllFormed() throws IOException {
    String filename = fileLocation + "nonStandardIllFormed.css";
    doTestFileStream(filename, "ISO-8859-6", new CSSResourceEncodingDetector());
}
Also used : CSSResourceEncodingDetector(org.eclipse.wst.css.core.internal.contenttype.CSSResourceEncodingDetector)

Example 8 with CSSResourceEncodingDetector

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

the class CSSEncodingTester method testUTF16be.

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

Example 9 with CSSResourceEncodingDetector

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

the class CSSEncodingTester method testBestCase.

public void testBestCase() throws IOException {
    String filename = fileLocation + "nonStandard.css";
    doTestFileStream(filename, "ISO-8859-6", new CSSResourceEncodingDetector());
}
Also used : CSSResourceEncodingDetector(org.eclipse.wst.css.core.internal.contenttype.CSSResourceEncodingDetector)

Example 10 with CSSResourceEncodingDetector

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

the class CSSEncodingTester method testShiftJIS.

public void testShiftJIS() throws IOException {
    String filename = fileLocation + "encoding_test_sjis.css";
    doTestFileStream(filename, "SHIFT_JIS", 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