Package org.syncany.chunk
Class TttdChunker.TTTDEnumeration
- java.lang.Object
-
- org.syncany.chunk.TttdChunker.TTTDEnumeration
-
- All Implemented Interfaces:
java.util.Enumeration<Chunk>,Chunker.ChunkEnumeration
- Enclosing class:
- TttdChunker
public class TttdChunker.TTTDEnumeration extends java.lang.Object implements Chunker.ChunkEnumeration
-
-
Constructor Summary
Constructors Constructor Description TTTDEnumeration(java.io.InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the file opened by thecreateChunks()method.booleanhasMoreElements()Returns true if the chunker can return at least one more chunk.ChunknextElement()Returns the next chunk (if there are any).
-
-
-
Constructor Detail
-
TTTDEnumeration
public TTTDEnumeration(java.io.InputStream in) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
hasMoreElements
public boolean hasMoreElements()
Description copied from interface:Chunker.ChunkEnumerationReturns true if the chunker can return at least one more chunk.- Specified by:
hasMoreElementsin interfaceChunker.ChunkEnumeration- Specified by:
hasMoreElementsin interfacejava.util.Enumeration<Chunk>
-
nextElement
public Chunk nextElement()
Description copied from interface:Chunker.ChunkEnumerationReturns the next chunk (if there are any).- Specified by:
nextElementin interfaceChunker.ChunkEnumeration- Specified by:
nextElementin interfacejava.util.Enumeration<Chunk>
-
close
public void close()
Description copied from interface:Chunker.ChunkEnumerationCloses the file opened by thecreateChunks()method. This method must be called at the end of processing to release any read-/write locks.- Specified by:
closein interfaceChunker.ChunkEnumeration
-
-