Class SVNCharsetInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.tmatesoft.svn.core.internal.util.SVNCharsetInputStream
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class SVNCharsetInputStream
extends java.io.FilterInputStream
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate SVNCharsetConvertorprivate java.nio.ByteBufferprivate booleanprivate byte[]Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionSVNCharsetInputStream(java.io.InputStream in, java.nio.charset.Charset inputCharset, java.nio.charset.Charset outputCharset, java.nio.charset.CodingErrorAction malformedInputAction, java.nio.charset.CodingErrorAction unmappableCharAction) -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
DEFAULT_BUFFER_CAPACITY
private static final int DEFAULT_BUFFER_CAPACITY- See Also:
-
myCharsetConvertor
-
mySourceBuffer
private byte[] mySourceBuffer -
myConvertedBuffer
private java.nio.ByteBuffer myConvertedBuffer -
myEndOfStream
private boolean myEndOfStream
-
-
Constructor Details
-
SVNCharsetInputStream
public SVNCharsetInputStream(java.io.InputStream in, java.nio.charset.Charset inputCharset, java.nio.charset.Charset outputCharset, java.nio.charset.CodingErrorAction malformedInputAction, java.nio.charset.CodingErrorAction unmappableCharAction)
-
-
Method Details
-
read
public int read() throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException - Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException - Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
fillBuffer
private int fillBuffer() throws java.io.IOException- Throws:
java.io.IOException
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-