|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.pdf.MappedRandomAccessFile
public class MappedRandomAccessFile
A MappedByteBuffer wrapped as a RandomAccessFile
| Constructor Summary | |
|---|---|
MappedRandomAccessFile(String filename,
String mode)
Constructs a new MappedRandomAccessFile instance |
|
| Method Summary | |
|---|---|
static boolean |
clean(ByteBuffer buffer)
invokes the clean method on the ByteBuffer's cleaner |
void |
close()
|
protected void |
finalize()
invokes the close method |
FileChannel |
getChannel()
|
long |
getFilePointer()
|
long |
length()
|
int |
read()
|
int |
read(byte[] bytes,
int off,
int len)
|
void |
seek(long pos)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MappedRandomAccessFile(String filename,
String mode)
throws FileNotFoundException,
IOException
filename - Stringmode - String r, w or rw
FileNotFoundException
IOException| Method Detail |
|---|
public FileChannel getChannel()
public int read()
RandomAccessFile.read()
public int read(byte[] bytes,
int off,
int len)
bytes - byte[]off - int offsetlen - int length
RandomAccessFile.read(byte[], int, int)public long getFilePointer()
RandomAccessFile.getFilePointer()public void seek(long pos)
pos - long positionRandomAccessFile.seek(long)public long length()
RandomAccessFile.length()
public void close()
throws IOException
IOExceptionCleans the mapped bytebuffer and closes the channel
protected void finalize()
throws Throwable
finalize in class ObjectThrowableObject.finalize()public static boolean clean(ByteBuffer buffer)
buffer - ByteBuffer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||