cpdetector.io
Class ByteOrderMarkDetectorTest

java.lang.Object
  extended by cpdetector.io.ByteOrderMarkDetectorTest

public class ByteOrderMarkDetectorTest
extends Object

JUnit test for ByteOrderMarkDetector.

Version:
$Revision: 1.2 $
Author:
Achim Westermann

Constructor Summary
ByteOrderMarkDetectorTest()
          Defcon.
 
Method Summary
 void ucs4_2143order()
          Tests detection of UCS-4 unusal octet order (2143 order).
 void ucs4_3412order()
          Tests detection of UCS-4 unusal octet order (3412 order).
 void ucs4bigendian()
          Tests detection of UCS-4BE.
 void ucs4littleendian()
          Tests detection of UCS-4LE.
 void utf16bigendian()
          Tests detection of UTF-16-BE.
 void utf16littleendian()
          Tests detection of UTF-16-LE.
 void utf8()
          Tests detection of UTF-8.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteOrderMarkDetectorTest

public ByteOrderMarkDetectorTest()
Defcon.

Method Detail

ucs4bigendian

public void ucs4bigendian()
                   throws IOException
Tests detection of UCS-4BE.

Throws:
IOException - if something bad happens (Charset not on this platform).

ucs4littleendian

public void ucs4littleendian()
                      throws IOException
Tests detection of UCS-4LE.

Throws:
IOException - if something bad happens (Charset not on this platform).

ucs4_2143order

public void ucs4_2143order()
                    throws IOException
Tests detection of UCS-4 unusal octet order (2143 order).

Throws:
IOException - if something bad happens (Charset not on this platform).

ucs4_3412order

public void ucs4_3412order()
                    throws IOException
Tests detection of UCS-4 unusal octet order (3412 order).

Throws:
IOException - if something bad happens (Charset not on this platform).

utf16bigendian

public void utf16bigendian()
                    throws IOException
Tests detection of UTF-16-BE.

Throws:
IOException - if something bad happens (Charset not on this platform).

utf16littleendian

public void utf16littleendian()
                       throws IOException
Tests detection of UTF-16-LE.

Throws:
IOException - if something bad happens (Charset not on this platform).

utf8

public void utf8()
          throws IOException
Tests detection of UTF-8.

Throws:
IOException - if something bad happens (Charset not on this platform).


Copyleft ㊢ 2003-2004 MPL 1.1, All Rights Footloose.