Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class MultiFileInputStream extends InputStream
MultiFileInputStream reads multiple Files as
if they were one contiguous file.| Constructor and Description |
|---|
MultiFileInputStream(File[] files) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
long |
length()
Gets the total number of bytes in all the files that will be read.
|
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] buff) |
int |
read(byte[] buff,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
public MultiFileInputStream(File[] files)
public int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buff)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buff,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic long length()
Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.