Class ArchiveEntryInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.eclipse.birt.core.archive.RAInputStream
-
- org.eclipse.birt.core.archive.compound.ArchiveEntryInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class ArchiveEntryInputStream extends RAInputStream
RAInputStream implementation based on the ArchiveEntry.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.voidclose()longgetOffset()longlength()intread()intread(byte[] b, int off, int len)voidreadFully(byte[] b, int off, int len)intreadInt()longreadLong()voidrefresh()voidseek(long localPos)
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOExceptionDescription copied from class:RAInputStreamReturns 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.- Specified by:
availablein classRAInputStream- Throws:
java.io.IOException
-
getOffset
public long getOffset() throws java.io.IOException- Specified by:
getOffsetin classRAInputStream- Throws:
java.io.IOException
-
length
public long length() throws java.io.IOException- Specified by:
lengthin classRAInputStream- Throws:
java.io.IOException
-
readFully
public void readFully(byte[] b, int off, int len) throws java.io.IOException- Specified by:
readFullyin classRAInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
readInt
public int readInt() throws java.io.IOException- Specified by:
readIntin classRAInputStream- Returns:
- Throws:
java.io.IOException
-
readLong
public long readLong() throws java.io.IOException- Specified by:
readLongin classRAInputStream- Throws:
java.io.IOException
-
refresh
public void refresh() throws java.io.IOException- Specified by:
refreshin classRAInputStream- Throws:
java.io.IOException
-
seek
public void seek(long localPos) throws java.io.IOException- Specified by:
seekin classRAInputStream- Throws:
java.io.IOException
-
-