Class ChunkedInputStream
java.lang.Object
java.io.InputStream
org.tmatesoft.svn.core.internal.util.ChunkedInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private int
private InputStream
private boolean
private boolean
private boolean
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private static int
getChunkSizeFromInputStream
(InputStream in, String charset) private void
int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) private void
readCRLF()
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
myCharset
-
myInputStream
-
myChunkSize
private int myChunkSize -
myPosition
private int myPosition -
myIsBOF
private boolean myIsBOF -
myIsEOF
private boolean myIsEOF -
myIsClosed
private boolean myIsClosed
-
-
Constructor Details
-
ChunkedInputStream
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
readCRLF
- Throws:
IOException
-
nextChunk
- Throws:
IOException
-
getChunkSizeFromInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-