Package com.zakgof.velvetvideo
Class MemSeekableFile
java.lang.Object
com.zakgof.velvetvideo.MemSeekableFile
- All Implemented Interfaces:
ISeekableOutput,java.lang.AutoCloseable
public class MemSeekableFile extends java.lang.Object implements ISeekableOutput
-
Constructor Summary
Constructors Constructor Description MemSeekableFile() -
Method Summary
-
Constructor Details
-
MemSeekableFile
public MemSeekableFile()
-
-
Method Details
-
write
public void write(byte[] bytes)Description copied from interface:ISeekableOutputWrites bytes from bytes array into the output stream.- Specified by:
writein interfaceISeekableOutput- Parameters:
bytes- buffer to write data from
-
seek
public void seek(long position)Description copied from interface:ISeekableOutputSeeks the write pointer to a specified position.- Specified by:
seekin interfaceISeekableOutput- Parameters:
position- position to seek in bytes from the stream beginning
-
close
public void close()Description copied from interface:ISeekableOutputCloses the output stream and frees the resources.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceISeekableOutput
-
toBytes
public byte[] toBytes()
-