public class RandomAccessFiles
extends java.lang.Object
Constructor and Description |
---|
RandomAccessFiles() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
read(java.io.RandomAccessFile input,
long position,
int length)
Reads a byte array starting at "position" for "length" bytes.
|
public static byte[] read(java.io.RandomAccessFile input, long position, int length) throws java.io.IOException
input
- The source RandomAccessFile.position
- The offset position, measured in bytes from the beginning of the file, at which to set the file pointer.length
- How many bytes to read.java.io.IOException
- If the first byte cannot be read for any reason other than end of file, or if the random access file has been closed, or if some
other I/O error occurs.Copyright © 2010 - 2023 Adobe. All Rights Reserved