com.github.junrar.io
Interface IReadOnlyAccess

All Known Implementing Classes:
InputStreamReadOnlyAccessFile, RandomAccessContentAccess, ReadOnlyAccessByteArray, ReadOnlyAccessFile

public interface IReadOnlyAccess

DOCUMENT ME

Version:
$LastChangedRevision$
Author:
$LastChangedBy$

Method Summary
 void close()
          Close this file.
 long getPosition()
           
 int read()
          Read a single byte of data.
 int read(byte[] buffer, int off, int count)
          Read up to count bytes to the specified buffer.
 int readFully(byte[] buffer, int count)
          Read exactly count bytes to the specified buffer.
 void setPosition(long pos)
           
 

Method Detail

getPosition

long getPosition()
                 throws IOException
Returns:
the current position in the file
Throws:
IOException

setPosition

void setPosition(long pos)
                 throws IOException
Parameters:
pos - the position in the file
Throws:
IOException

read

int read()
         throws IOException
Read a single byte of data.

Throws:
IOException

read

int read(byte[] buffer,
         int off,
         int count)
         throws IOException
Read up to count bytes to the specified buffer.

Throws:
IOException

readFully

int readFully(byte[] buffer,
              int count)
              throws IOException
Read exactly count bytes to the specified buffer.

Parameters:
buffer - where to store the read data
count - how many bytes to read
Returns:
bytes read || -1 if IO problem
Throws:
IOException

close

void close()
           throws IOException
Close this file.

Throws:
IOException


Copyright © 2012. All Rights Reserved.