Package org.mp4parser.muxer
Class InMemRandomAccessSourceImpl
- java.lang.Object
-
- org.mp4parser.muxer.InMemRandomAccessSourceImpl
-
- All Implemented Interfaces:
Closeable,AutoCloseable,RandomAccessSource
public class InMemRandomAccessSourceImpl extends Object implements RandomAccessSource
Typically used for tests.
-
-
Constructor Summary
Constructors Constructor Description InMemRandomAccessSourceImpl(byte[] b)InMemRandomAccessSourceImpl(ByteBuffer buffer)
-
-
-
Constructor Detail
-
InMemRandomAccessSourceImpl
public InMemRandomAccessSourceImpl(ByteBuffer buffer)
-
InMemRandomAccessSourceImpl
public InMemRandomAccessSourceImpl(byte[] b)
-
-
Method Detail
-
get
public ByteBuffer get(long offset, long size) throws IOException
- Specified by:
getin interfaceRandomAccessSource- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-