Package org.mp4parser.muxer
Class SampleImpl
- java.lang.Object
-
- org.mp4parser.muxer.SampleImpl
-
-
Constructor Summary
Constructors Constructor Description SampleImpl(long offset, long sampleSize, ByteBuffer data, SampleEntry sampleEntry)SampleImpl(ByteBuffer[] data, SampleEntry sampleEntry)SampleImpl(ByteBuffer buf, SampleEntry sampleEntry)
-
Method Summary
Modifier and Type Method Description ByteBufferasByteBuffer()SampleEntrygetSampleEntry()longgetSize()StringtoString()voidwriteTo(WritableByteChannel channel)
-
-
-
Constructor Detail
-
SampleImpl
public SampleImpl(ByteBuffer buf, SampleEntry sampleEntry)
-
SampleImpl
public SampleImpl(ByteBuffer[] data, SampleEntry sampleEntry)
-
SampleImpl
public SampleImpl(long offset, long sampleSize, ByteBuffer data, SampleEntry sampleEntry)
-
-
Method Detail
-
writeTo
public void writeTo(WritableByteChannel channel) throws IOException
- Specified by:
writeToin interfaceSample- Throws:
IOException
-
getSampleEntry
public SampleEntry getSampleEntry()
- Specified by:
getSampleEntryin interfaceSample
-
asByteBuffer
public ByteBuffer asByteBuffer()
- Specified by:
asByteBufferin interfaceSample
-
-