com.sun.squawk.flash
Class MemoryHeapBlock
java.lang.Object
com.sun.squawk.flash.MemoryHeapBlock
- All Implemented Interfaces:
- IMemoryHeapBlock
public class MemoryHeapBlock
- extends Object
- implements IMemoryHeapBlock
address
protected Address address
bytesIn
protected ByteArrayInputStreamWithSetBytes bytesIn
bytes
protected byte[] bytes
dataIn
protected DataInputStream dataIn
isAllocated
protected boolean isAllocated
length
protected int length
nextBlockOffset
protected int nextBlockOffset
offset
protected int offset
MemoryHeapBlock
public MemoryHeapBlock()
getAddress
public Address getAddress()
- Specified by:
getAddress
in interface IMemoryHeapBlock
getByteArrayInputStream
public ByteArrayInputStreamWithSetBytes getByteArrayInputStream()
- Specified by:
getByteArrayInputStream
in interface IMemoryHeapBlock
getBytes
public byte[] getBytes()
- Specified by:
getBytes
in interface IMemoryHeapBlock
getDataInputStream
public DataInputStream getDataInputStream()
- Specified by:
getDataInputStream
in interface IMemoryHeapBlock
getLength
public int getLength()
- Specified by:
getLength
in interface IMemoryHeapBlock
getNextBlockOffset
public int getNextBlockOffset()
- Specified by:
getNextBlockOffset
in interface IMemoryHeapBlock
getOffset
public int getOffset()
- Specified by:
getOffset
in interface IMemoryHeapBlock
isAllocated
public boolean isAllocated()
- Specified by:
isAllocated
in interface IMemoryHeapBlock
resetBytes
public void resetBytes()
- Specified by:
resetBytes
in interface IMemoryHeapBlock
setAddress
public void setAddress(Address address)
- Specified by:
setAddress
in interface IMemoryHeapBlock
setBytes
public void setBytes(byte[] bytes,
int offset,
int length)
- Specified by:
setBytes
in interface IMemoryHeapBlock
setIsAllocated
public void setIsAllocated(boolean isAllocated)
- Specified by:
setIsAllocated
in interface IMemoryHeapBlock
setLength
public void setLength(int length)
- Specified by:
setLength
in interface IMemoryHeapBlock
setNextOffset
public void setNextOffset(int offset)
- Specified by:
setNextOffset
in interface IMemoryHeapBlock
Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.