Package org.eclipse.birt.core.archive
Class RAInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.eclipse.birt.core.archive.RAInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
ArchiveEntryInputStream,RAFileInputStream,RAFolderInputStream
public abstract class RAInputStream extends java.io.InputStream
-
-
Constructor Summary
Constructors Constructor Description RAInputStream()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract intavailable()Returns the number of bytes that can be read (or skipped over) from this random access input stream without blocking by the next caller of a method for this input stream.abstract longgetOffset()abstract longlength()abstract voidreadFully(byte[] b, int off, int len)abstract intreadInt()abstract longreadLong()abstract voidrefresh()abstract voidseek(long localPos)
-
-
-
Method Detail
-
seek
public abstract void seek(long localPos) throws java.io.IOException- Parameters:
localPos-- Throws:
java.io.IOException
-
getOffset
public abstract long getOffset() throws java.io.IOException- Throws:
java.io.IOException
-
length
public abstract long length() throws java.io.IOException- Throws:
java.io.IOException
-
readInt
public abstract int readInt() throws java.io.IOException- Returns:
- Throws:
java.io.IOException
-
readLong
public abstract long readLong() throws java.io.IOException- Throws:
java.io.IOException
-
readFully
public abstract void readFully(byte[] b, int off, int len) throws java.io.IOException- Throws:
java.io.IOException
-
refresh
public abstract void refresh() throws java.io.IOException- Throws:
java.io.IOException
-
available
public abstract int available() throws java.io.IOExceptionReturns the number of bytes that can be read (or skipped over) from this random access input stream without blocking by the next caller of a method for this input stream. The next caller might be the same thread or another thread.This abstract class is extended by
RAFolderInputStreamandRAFileInputStreamThe
availablemethod returns-1when no more data because the end of the stream has been reached.and returns
Integer.MAX_VALUEwhen bytes of data is larger then Integer.MAX_VALUE.- Overrides:
availablein classjava.io.InputStream- Throws:
java.io.IOException
-
-