public class

ModelByteBuffer

extends Object
java.lang.Object
   ↳ com.sun.media.sound.ModelByteBuffer

Class Overview

This class is a pointer to a binary array either in memory or on disk.

Summary

Public Constructors
ModelByteBuffer(byte[] buffer)
ModelByteBuffer(byte[] buffer, int offset, int len)
ModelByteBuffer(File file)
ModelByteBuffer(File file, long offset, long len)
Public Methods
byte[] array()
long arrayOffset()
long capacity()
File getFile()
long getFilePointer()
InputStream getInputStream()
ModelByteBuffer getRoot()
void load()
static void loadAll(Collection<ModelByteBuffer> col)
ModelByteBuffer subbuffer(long beginIndex, long endIndex)
ModelByteBuffer subbuffer(long beginIndex, long endIndex, boolean independent)
ModelByteBuffer subbuffer(long beginIndex)
void unload()
void writeTo(OutputStream out)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ModelByteBuffer (byte[] buffer)

public ModelByteBuffer (byte[] buffer, int offset, int len)

public ModelByteBuffer (File file)

public ModelByteBuffer (File file, long offset, long len)

Public Methods

public byte[] array ()

public long arrayOffset ()

public long capacity ()

public File getFile ()

public long getFilePointer ()

public InputStream getInputStream ()

public ModelByteBuffer getRoot ()

public void load ()

Throws
IOException

public static void loadAll (Collection<ModelByteBuffer> col)

Throws
IOException

public ModelByteBuffer subbuffer (long beginIndex, long endIndex)

public ModelByteBuffer subbuffer (long beginIndex, long endIndex, boolean independent)

public ModelByteBuffer subbuffer (long beginIndex)

public void unload ()

public void writeTo (OutputStream out)

Throws
IOException