Method | Description | |
---|---|---|
ReadFully ( |
Read an entire local file into memory as a byte array.
|
|
ReadFully ( |
Read an entire local file into memory as a byte array.
|
|
ReadFully ( Stream fd, byte dst, int off, int len ) : void |
Read the entire byte array into memory, or throw an exception.
|
|
ReadFully ( Stream fd, long pos, byte dst, int off, int len ) : void |
Read the entire byte array into memory, or throw an exception.
|
|
skipFully ( Stream fd, long toSkip ) : void |
Skip an entire region of an input stream.
|
public static ReadFully ( |
||
path | Location of the file to read. | |
return | byte[] |
public static ReadFully ( |
||
path | Location of the file to read. | |
max | int | /// Maximum number of bytes to Read, if the file is larger than /// this limit an IOException is thrown. /// |
return | byte[] |
public static ReadFully ( Stream fd, byte dst, int off, int len ) : void | ||
fd | Stream | Input stream to read the data from. |
dst | byte | buffer that must be fully populated |
off | int | position within the buffer to start writing to. |
len | int | number of bytes that must be read. |
return | void |
public static ReadFully ( Stream fd, long pos, byte dst, int off, int len ) : void | ||
fd | Stream | Stream to read the data from. |
pos | long | Position to read from the file at. |
dst | byte | Buffer that must be fully populated, [off, off+len]. |
off | int | position within the buffer to start writing to. |
len | int | number of bytes that must be read. |
return | void |
public static skipFully ( Stream fd, long toSkip ) : void | ||
fd | Stream | The stream to skip bytes from. |
toSkip | long | /// Total number of bytes to be discarded. Must be >= 0. /// |
return | void |