| java.lang.Object org.jvnet.mimepull.DataFile
DataFile | final class DataFile (Code) | | Use
RandomAccessFile for concurrent access of read
and write partial part's content.
author: Kohsuke Kawaguchi author: Jitendra Kotamraju |
Method Summary | |
void | close() there is no point in calling read(), write(). | protected void | finalize() | InputStream | getInputStream() | synchronized void | read(long pointer, byte[] buf, int offset, int length) Read data from the given file pointer position. | void | renameTo(File f) | synchronized long | writeTo(byte[] data, int offset, int length) |
close | void close()(Code) | | there is no point in calling read(), write(). Directly can use
{#getInputStream()}
|
read | synchronized void read(long pointer, byte[] buf, int offset, int length)(Code) | | Read data from the given file pointer position.
Parameters: pointer - read position Parameters: buf - that needs to be filled Parameters: offset - the start offset of the data. Parameters: length - of data that needs to be read |
writeTo | synchronized long writeTo(byte[] data, int offset, int length)(Code) | | Write data to the file
Parameters: data - that needs to written to a file Parameters: offset - start offset in the data Parameters: length - no bytes to write file pointer before the write operation(or at which thedata is written) |
|
|