@Deprecated public interface RandomAccessContentInterface
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canWrite()
Deprecated.  
returns true if this RandomAccessContent object was created with
 "read-write" mode enabled. 
 | 
void | 
close()
Deprecated.  
releases all resources used by this object and commits
 (if needed) any write operations. 
 | 
void | 
dispose()
Deprecated.  
releases all resources used by this object and rolls back
 (if needed) any uncommitted write operations. 
 | 
void | 
flush()
Deprecated.  
commits any write operations. 
 | 
long | 
getLength()
Deprecated.  
returns the length of this content object. 
 | 
int | 
read(long fOffset,
    byte[] buf,
    int bOffset,
    int length)
Deprecated.  
read length bytes from file offset, filling buffer starting at boffset. 
 | 
void | 
truncate(long offset)
Deprecated.  
truncate content to the desired length 
 | 
void | 
write(long fOffset,
     byte[] buf,
     int bOffset,
     int length)
Deprecated.  
write length bytes at file offset, starting from buffer offset. 
 | 
int read(long fOffset,
         byte[] buf,
         int bOffset,
         int length)
  throws IfsException
fOffset - offset at which to begin reading.buf - the byte array into which data is to be readbOffset - the offset into the bufferlength - the amount of data to read.IfsException - if operation failsvoid write(long fOffset,
           byte[] buf,
           int bOffset,
           int length)
    throws IfsException
fOffset - offset at which to begin writing.buf - the byte array containing the data to be writtenbOffset - the offset into the buffer to begin writing fromlength - the amount of data to writeIfsException - if operation failsvoid truncate(long offset)
       throws IfsException
offset - offset at which to truncate.IfsException - if operation failsvoid flush()
    throws IfsException
IfsException - if operation failsvoid close()
    throws IfsException
IfsException - if operation failsvoid dispose()
      throws IfsException
IfsException - if operation failsboolean canWrite()
          throws IfsException
IfsException - if operation failslong getLength()
        throws IfsException
IfsException - if operation failsCopyright © 2025. All rights reserved.