Package com.sun.media.sound
Class ModelByteBuffer
java.lang.Object
com.sun.media.sound.ModelByteBuffer
This class is a pointer to a binary array either in memory or on disk.
-
Constructor Summary
ConstructorDescriptionModelByteBuffer
(byte[] buffer) ModelByteBuffer
(byte[] buffer, int offset, int len) ModelByteBuffer
(File file) ModelByteBuffer
(File file, long offset, long len) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
array()
long
long
capacity()
getFile()
long
getRoot()
void
load()
static void
loadAll
(Collection<ModelByteBuffer> col) subbuffer
(long beginIndex) subbuffer
(long beginIndex, long endIndex) subbuffer
(long beginIndex, long endIndex, boolean independent) void
unload()
void
writeTo
(OutputStream out)
-
Constructor Details
-
ModelByteBuffer
public ModelByteBuffer(byte[] buffer) -
ModelByteBuffer
public ModelByteBuffer(byte[] buffer, int offset, int len) -
ModelByteBuffer
-
ModelByteBuffer
-
-
Method Details
-
writeTo
- Throws:
IOException
-
getInputStream
-
subbuffer
-
subbuffer
-
subbuffer
-
array
public byte[] array() -
arrayOffset
public long arrayOffset() -
capacity
public long capacity() -
getRoot
-
getFile
-
getFilePointer
public long getFilePointer() -
loadAll
- Throws:
IOException
-
load
- Throws:
IOException
-
unload
public void unload()
-