Package org.metafacture.triples
Class SortedTripleFileFacade
- java.lang.Object
-
- org.metafacture.triples.SortedTripleFileFacade
-
public final class SortedTripleFileFacade extends java.lang.ObjectA SortedTripleFileFacade created with a file. Reads a Triple from the file.
-
-
Field Summary
Fields Modifier and Type Field Description static intBUFFERSIZE
-
Constructor Summary
Constructors Constructor Description SortedTripleFileFacade(java.io.File file)Constructs a SortedTripleFileFacade with a file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes theObjectInputStreamand deletes thefileif it exists.booleanisEmpty()Checks whether SortedTripleFileFacade is empty.org.metafacture.framework.objects.Triplepeek()Peeks at a Triple at the top of the stack.org.metafacture.framework.objects.Triplepop()Pops a Triple from the stack.
-
-
-
Field Detail
-
BUFFERSIZE
public static final int BUFFERSIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SortedTripleFileFacade
public SortedTripleFileFacade(java.io.File file) throws java.io.IOExceptionConstructs a SortedTripleFileFacade with a file. Reads a Triple from the file.- Parameters:
file- the File to load Triples from- Throws:
java.io.IOException- if Triple can't be loaded
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Checks whether SortedTripleFileFacade is empty.- Returns:
- true if SortedTripleFileFacade is empty.
-
close
public void close()
Closes theObjectInputStreamand deletes thefileif it exists.
-
peek
public org.metafacture.framework.objects.Triple peek()
Peeks at a Triple at the top of the stack.- Returns:
- the Triple at the top of the stack
-
pop
public org.metafacture.framework.objects.Triple pop() throws java.io.IOExceptionPops a Triple from the stack.- Returns:
- the Triple at the top of the stack.
- Throws:
java.io.IOException- if the Triple can't be loaded
-
-