public class ChunkedFileInputStream extends FileInputStream
| Constructor and Description |
|---|
ChunkedFileInputStream(File file,
long offset,
long endOffset)
constructor
|
ChunkedFileInputStream(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
long |
getEndOffset()
get the ending offset
|
long |
getOffset()
get the starting offset
|
int |
read()
read the next byte
|
void |
setEndOffset(long endOffset)
set the ending offset
|
void |
setOffset(long offset)
set the starting offset
|
available, close, finalize, getChannel, getFD, read, read, skipmark, markSupported, resetpublic ChunkedFileInputStream(String name) throws FileNotFoundException
name - the name of the fileFileNotFoundException - if the file was not foundpublic ChunkedFileInputStream(File file, long offset, long endOffset) throws FileNotFoundException
file - the file to loadoffset - the starting offsetendOffset - the ending offsetFileNotFoundException - if the requested file was not foundpublic int read()
throws IOException
read in class FileInputStreamIOExceptionpublic long getEndOffset()
public void setEndOffset(long endOffset)
endOffset - the ending offsetpublic long getOffset()
public void setOffset(long offset)
offset - the starting offsetCopyright © 2009–2020 Opencast Project. All rights reserved.