Package org.eclipse.net4j.util.io
Class LimitedInputStream
- java.lang.Object
- 
- java.io.InputStream
- 
- org.eclipse.net4j.util.io.LimitedInputStream
 
 
- 
- All Implemented Interfaces:
- java.io.Closeable,- java.lang.AutoCloseable
 
 public class LimitedInputStream extends java.io.InputStream- Since:
- 3.2
- Author:
- Eike Stepper
 
- 
- 
Constructor SummaryConstructors Constructor Description LimitedInputStream(java.io.InputStream in, long length)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidmark(int readlimit)booleanmarkSupported()intread()intread(byte[] cbuf, int off, int len)voidreset()longskip(long n)
 
- 
- 
- 
Method Detail- 
readpublic int read() throws java.io.IOException- Specified by:
- readin class- java.io.InputStream
- Throws:
- java.io.IOException
 
 - 
readpublic int read(byte[] cbuf, int off, int len) throws java.io.IOException- Overrides:
- readin class- java.io.InputStream
- Throws:
- java.io.IOException
 
 - 
skippublic long skip(long n) throws java.io.IOException- Overrides:
- skipin class- java.io.InputStream
- Throws:
- java.io.IOException
 
 - 
markSupportedpublic boolean markSupported() - Overrides:
- markSupportedin class- java.io.InputStream
 
 - 
markpublic void mark(int readlimit) - Overrides:
- markin class- java.io.InputStream
 
 - 
resetpublic void reset() throws java.io.IOException- Overrides:
- resetin class- java.io.InputStream
- Throws:
- java.io.IOException
 
 - 
closepublic void close() throws java.io.IOException- Specified by:
- closein interface- java.lang.AutoCloseable
- Specified by:
- closein interface- java.io.Closeable
- Overrides:
- closein class- java.io.InputStream
- Throws:
- java.io.IOException
 
 
- 
 
-