public class ExpectedFileInputStream extends FileInputStream
| Constructor and Description |
|---|
ExpectedFileInputStream(File file,
long expectedSize) |
| Modifier and Type | Method and Description |
|---|---|
long |
getTimeout() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
setTimeout(long timeout) |
long |
skip(long n) |
available, close, finalize, getChannel, getFDmark, markSupported, resetpublic ExpectedFileInputStream(File file, long expectedSize) throws FileNotFoundException
FileNotFoundExceptionpublic long getTimeout()
public void setTimeout(long timeout)
public long skip(long n)
throws IOException
skip in class FileInputStreamIOExceptionpublic int read()
throws IOException
read in class FileInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FileInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class FileInputStreamIOExceptionCopyright (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