Package org.syncany.chunk
Class FixedChunker.FixedChunkEnumeration
- java.lang.Object
-
- org.syncany.chunk.FixedChunker.FixedChunkEnumeration
-
- All Implemented Interfaces:
java.util.Enumeration<Chunk>
,Chunker.ChunkEnumeration
- Enclosing class:
- FixedChunker
public class FixedChunker.FixedChunkEnumeration extends java.lang.Object implements Chunker.ChunkEnumeration
-
-
Constructor Summary
Constructors Constructor Description FixedChunkEnumeration(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
-
FixedChunkEnumeration
public FixedChunkEnumeration(java.io.InputStream in)
-
-
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
-
-