Top Description Fields Constructors Methods
sun.jvm.hotspot.debugger

public Class MappedByteBufferDataSource

extends Object
implements DataSource
Class Inheritance
All Implemented Interfaces
sun.jvm.hotspot.debugger.DataSource
Imports
java.io.*, java.nio.*

Implementation of DataSource using MappedByteBuffer. This works around a performance problem in JDK 1.4 where ByteBuffer's operations always become virtual calls rather than being inlined. Need to fix this soon.

Field Summary

Modifier and TypeField and Description
private MappedByteBuffer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public long
public int
public byte
public int
public long
public short
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bufback to summary
private MappedByteBuffer buf

Constructor Detail

MappedByteBufferDataSourceback to summary
public MappedByteBufferDataSource(MappedByteBuffer buf)

Method Detail

closeback to summary
public void close() throws IOException

Implements sun.jvm.hotspot.debugger.DataSource.close.

getFilePointerback to summary
public long getFilePointer() throws IOException

Implements sun.jvm.hotspot.debugger.DataSource.getFilePointer.

readback to summary
public int read(byte[] b) throws IOException

Implements sun.jvm.hotspot.debugger.DataSource.read.

readByteback to summary
public byte readByte() throws IOException

Implements sun.jvm.hotspot.debugger.DataSource.readByte.

readIntback to summary
public int readInt() throws IOException

Implements sun.jvm.hotspot.debugger.DataSource.readInt.

readLongback to summary
public long readLong() throws IOException

Implements sun.jvm.hotspot.debugger.DataSource.readLong.

readShortback to summary
public short readShort() throws IOException

Implements sun.jvm.hotspot.debugger.DataSource.readShort.

seekback to summary
public void seek(long pos) throws IOException

Implements sun.jvm.hotspot.debugger.DataSource.seek.