org.gjt.sp.jedit.io
Class EncodingWithBOM

java.lang.Object
  extended by org.gjt.sp.jedit.io.EncodingWithBOM
All Implemented Interfaces:
Encoding

public class EncodingWithBOM
extends java.lang.Object
implements Encoding

Encodings which have BOM at the beginning of byte stream.

Since:
4.3pre10

Nested Class Summary
static class EncodingWithBOM.Detector
           
 
Constructor Summary
EncodingWithBOM(java.lang.String plain)
           
 
Method Summary
 java.io.Reader getTextReader(java.io.InputStream in)
          Map an InputStream to a Reader.
 java.io.Writer getTextWriter(java.io.OutputStream out)
          Map an OutputStream to a Writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncodingWithBOM

public EncodingWithBOM(java.lang.String plain)
Method Detail

getTextReader

public java.io.Reader getTextReader(java.io.InputStream in)
                             throws java.io.IOException
Description copied from interface: Encoding
Map an InputStream to a Reader.

Specified by:
getTextReader in interface Encoding
Throws:
java.io.IOException

getTextWriter

public java.io.Writer getTextWriter(java.io.OutputStream out)
                             throws java.io.IOException
Description copied from interface: Encoding
Map an OutputStream to a Writer.

Specified by:
getTextWriter in interface Encoding
Throws:
java.io.IOException