|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectio.ChunkedDataSet
public class ChunkedDataSet
Use the ChunkedDataSet if you have a list of files containing framed data and want to read that in sequencially.
Nested Class Summary | |
---|---|
static class |
ChunkedDataSet.Chunk
A chunk consists of its name and a (ready-to-read) FrameReader |
Constructor Summary | |
---|---|
ChunkedDataSet(java.util.List<java.lang.String> fileNames)
|
|
ChunkedDataSet(java.lang.String fileName)
Create a ChunkDataSet using the given list file. |
Method Summary | |
---|---|
java.util.List<Sample> |
cachedData()
Cache all chunks into a List |
ChunkedDataSet.Chunk |
nextChunk()
Get the next Chunk from the list. |
void |
rewind()
|
void |
setChunkList(java.lang.String fileName)
Load the given chunk list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChunkedDataSet(java.util.List<java.lang.String> fileNames)
public ChunkedDataSet(java.lang.String fileName) throws java.io.IOException
fileName
- path to the list file
java.io.IOException
Method Detail |
---|
public java.util.List<Sample> cachedData() throws java.io.IOException
java.io.IOException
public ChunkedDataSet.Chunk nextChunk() throws java.io.IOException
java.io.IOException
public void rewind()
public void setChunkList(java.lang.String fileName) throws java.io.IOException
fileName
-
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |