Package com.zakgof.velvetvideo.impl
Class FileSeekableInput
java.lang.Object
com.zakgof.velvetvideo.impl.FileSeekableInput
- All Implemented Interfaces:
ISeekableInput,java.lang.AutoCloseable
public class FileSeekableInput extends java.lang.Object implements ISeekableInput
-
Constructor Summary
Constructors Constructor Description FileSeekableInput(java.io.FileInputStream fis) -
Method Summary
-
Constructor Details
-
FileSeekableInput
public FileSeekableInput(java.io.FileInputStream fis)
-
-
Method Details
-
read
public int read(byte[] bytes)Description copied from interface:ISeekableInputRead bytes from the input stream into the bytes array.- Specified by:
readin interfaceISeekableInput- Parameters:
bytes- buffer to read data to- Returns:
- number of bytes read.
-
seek
public void seek(long position)Description copied from interface:ISeekableInputSeeks read pointer to the specified position.- Specified by:
seekin interfaceISeekableInput- Parameters:
position- offset from the stream start to put the read pointer
-
close
public void close()Description copied from interface:ISeekableInputCloses the input stream and free the resources.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceISeekableInput
-
size
public long size()- Specified by:
sizein interfaceISeekableInput- Returns:
- total number of bytes in this stream
-