| java.lang.Object it.unimi.dsi.mg4j.document.AbstractDocumentSequence it.unimi.dsi.mg4j.document.AbstractDocumentCollection it.unimi.dsi.mg4j.document.FileSetDocumentCollection
FileSetDocumentCollection | public class FileSetDocumentCollection extends AbstractDocumentCollection implements Serializable(Code) | | A
it.unimi.dsi.mg4j.document.DocumentCollection corresponding to
a given set of files.
This class provides a main method with a flexible syntax that serialises
into a document collection a list of files given on the command line or
piped into standard input. Optionally, you can provide a parallel list of URIs
that will be associated to each file.
|
FileSetDocumentCollection | public FileSetDocumentCollection(String[] file, DocumentFactory factory)(Code) | | Builds a document collection corresponding to a given set of files specified as an array.
Beware. This class is not guaranteed to work if files are
deleted or modified after creation!
Parameters: file - an array containing the files that will be contained inthe collection. Parameters: factory - the factory that will be used to create documents. |
FileSetDocumentCollection | public FileSetDocumentCollection(String[] file, String uri, DocumentFactory factory)(Code) | | Builds a document collection corresponding to a given set of files specified as an array and
a parallel array of URIs, one for each file.
Beware. This class is not guaranteed to work if files are
deleted or modified after creation!
Parameters: file - an array containing the files that will be contained inthe collection. Parameters: uri - an array, parallel to file , containing URIs to be associated to each element of file . Parameters: factory - the factory that will be used to create documents. |
|
|