Class ArchiveEntryInputStream
java.lang.Object
java.io.InputStream
org.eclipse.birt.core.archive.RAInputStream
org.eclipse.birt.core.archive.compound.ArchiveEntryInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
RAInputStream implementation based on the ArchiveEntry.
-
Method Summary
Modifier and TypeMethodDescriptionintReturns 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()longlonglength()intread()intread(byte[] b, int off, int len) voidreadFully(byte[] b, int off, int len) intreadInt()longreadLong()voidrefresh()voidseek(long localPos) Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
available
Description 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:
IOException
-
getOffset
- Specified by:
getOffsetin classRAInputStream- Throws:
IOException
-
length
- Specified by:
lengthin classRAInputStream- Throws:
IOException
-
readFully
- Specified by:
readFullyin classRAInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
readInt
- Specified by:
readIntin classRAInputStream- Returns:
- Throws:
IOException
-
readLong
- Specified by:
readLongin classRAInputStream- Throws:
IOException
-
refresh
- Specified by:
refreshin classRAInputStream- Throws:
IOException
-
seek
- Specified by:
seekin classRAInputStream- Throws:
IOException
-