public class LimitedInputStream extends InputStream
| Constructor and Description |
|---|
LimitedInputStream(InputStream in,
long length) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] cbuf,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
available, readpublic LimitedInputStream(InputStream in, long length)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] cbuf,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic void mark(int readlimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html