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
Fields Modifier and Type Field Description private static int
DEFAULT_BUFFER_CAPACITY
private SVNCharsetConvertor
myCharsetConvertor
private java.nio.ByteBuffer
myConvertedBuffer
private boolean
myEndOfStream
private byte[]
mySourceBuffer
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
fillBuffer()
int
read()
int
read(byte[] b)
int
read(byte[] b, int off, int len)
java.lang.String
toString()
-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
-
-
-
-
Field Detail
-
DEFAULT_BUFFER_CAPACITY
private static final int DEFAULT_BUFFER_CAPACITY
- See Also:
- Constant Field Values
-
myCharsetConvertor
private SVNCharsetConvertor myCharsetConvertor
-
mySourceBuffer
private byte[] mySourceBuffer
-
myConvertedBuffer
private java.nio.ByteBuffer myConvertedBuffer
-
myEndOfStream
private boolean myEndOfStream
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Overrides:
read
in classjava.io.FilterInputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException
- Overrides:
read
in classjava.io.FilterInputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
read
in 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:
toString
in classjava.lang.Object
-
-