|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lizardtech.djvu.DjVuObject
com.lizardtech.djvu.IFFEnumeration
public class IFFEnumeration
This Enumeration iterates over a CachedInputStream as an ordered list of CachedInputStream's. The chunk id's are stored in the CachedInputStream as the name value. IFF files were originally intended for audio. But is well suited for any streaming data.
| Field Summary | |
|---|---|
protected CachedInputStream |
input
The raw input stream. |
protected CachedInputStream |
next
The next CachedInputStream object on the list |
| Fields inherited from class com.lizardtech.djvu.DjVuObject |
|---|
hasReferences |
| Constructor Summary | |
|---|---|
IFFEnumeration()
Creates a new IFFEnumeration object. |
|
| Method Summary | |
|---|---|
static boolean |
check_id(java.lang.String id)
Check for the specified id |
static IFFEnumeration |
createIFFEnumeration(DjVuInterface ref)
Creates an instance of IFFEnumeration with the options interherited from the specified reference. |
boolean |
hasMoreElements()
Query if there are more CachedInputStream's available. |
IFFEnumeration |
init(CachedInputStream input)
Initialize this stream. |
java.lang.Object |
nextElement()
Query the next CachedInputStream. |
| Methods inherited from class com.lizardtech.djvu.DjVuObject |
|---|
checkLockTime, create, create, createSoftReference, createWeakReference, getDjVuOptions, getFromReference, invoke, logError, printStackTrace, setDjVuOptions, verbose |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CachedInputStream input
protected CachedInputStream next
| Constructor Detail |
|---|
public IFFEnumeration()
| Method Detail |
|---|
public static IFFEnumeration createIFFEnumeration(DjVuInterface ref)
ref - Object to interherit DjVuOptions from.
public IFFEnumeration init(CachedInputStream input)
input - data source
public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumeration
public java.lang.Object nextElement()
throws java.util.NoSuchElementException
nextElement in interface java.util.Enumerationjava.util.NoSuchElementException - if there are no more streams available.
public static boolean check_id(java.lang.String id)
throws java.io.IOException
id - id to check for
java.io.IOException - if an error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||