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 void
close()
Closes the file opened by thecreateChunks()
method.boolean
hasMoreElements()
Returns true if the chunker can return at least one more chunk.Chunk
nextElement()
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.ChunkEnumeration
Returns true if the chunker can return at least one more chunk.- Specified by:
hasMoreElements
in interfaceChunker.ChunkEnumeration
- Specified by:
hasMoreElements
in interfacejava.util.Enumeration<Chunk>
-
nextElement
public Chunk nextElement()
Description copied from interface:Chunker.ChunkEnumeration
Returns the next chunk (if there are any).- Specified by:
nextElement
in interfaceChunker.ChunkEnumeration
- Specified by:
nextElement
in interfacejava.util.Enumeration<Chunk>
-
close
public void close()
Description copied from interface:Chunker.ChunkEnumeration
Closes the file opened by thecreateChunks()
method. This method must be called at the end of processing to release any read-/write locks.- Specified by:
close
in interfaceChunker.ChunkEnumeration
-
-