Package org.gjt.sp.jedit.io
Class CharsetEncoding
- java.lang.Object
-
- org.gjt.sp.jedit.io.CharsetEncoding
-
-
Constructor Summary
Constructors Constructor Description CharsetEncoding(java.lang.String name)CharsetEncoding(java.nio.charset.Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.ReadergetPermissiveTextReader(java.io.InputStream in)Map an InputStream to a Reader.java.io.ReadergetTextReader(java.io.InputStream in)Map an InputStream to a Reader.java.io.WritergetTextWriter(java.io.OutputStream out)Map an OutputStream to a Writer.
-
-
-
Method Detail
-
getTextReader
@Nonnull public java.io.Reader getTextReader(@Nonnull java.io.InputStream in) throws java.io.IOExceptionDescription copied from interface:EncodingMap an InputStream to a Reader. Decode-error while reading from this Reader should be reported by throwing an IOException.- Specified by:
getTextReaderin interfaceEncoding- Throws:
java.io.IOException
-
getTextWriter
@Nonnull public java.io.Writer getTextWriter(@Nonnull java.io.OutputStream out) throws java.io.IOExceptionDescription copied from interface:EncodingMap an OutputStream to a Writer. Encode-error while writing to this Writer should be reported by throwing an IOException.- Specified by:
getTextWriterin interfaceEncoding- Throws:
java.io.IOException
-
getPermissiveTextReader
@Nonnull public java.io.Reader getPermissiveTextReader(@Nonnull java.io.InputStream in) throws java.io.IOExceptionDescription copied from interface:EncodingMap an InputStream to a Reader. Decode-error while reading from this Reader should be ignored or replaced.- Specified by:
getPermissiveTextReaderin interfaceEncoding- Throws:
java.io.IOException
-
-