- java.lang.Object
-
- fold.io.CustomFoldReader<T>
-
- Type Parameters:
T
- A subclass ofFoldFile
to read into.
- Direct Known Subclasses:
FoldReader
public class CustomFoldReader<T extends FoldFile> extends Object
Custom fold Reader, writes a subclass ofFoldFile
.
-
-
Constructor Summary
Constructors Constructor Description CustomFoldReader(Class<T> tClass, InputStream inputStream)
Create a new CustomFoldReader instance.
-
-
-
Constructor Detail
-
CustomFoldReader
public CustomFoldReader(Class<T> tClass, InputStream inputStream)
Create a new CustomFoldReader instance.- Parameters:
tClass
- The (subclass of)FoldFile
this reader can read from.inputStream
- The inputStream to read from.
-
-
Method Detail
-
read
public T read() throws FoldFileFormatException
Read a FoldFile from the given inputStream- Returns:
- A (subclass of)
FoldFile
- Throws:
FoldFileFormatException
- If reading the inputStream causes an exception.
-
-