Class XMLFileAsList
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<List<String>>,Collection<List<String>>,List<List<String>>,SequencedCollection<List<String>>,org.gvsig.tools.util.GetItem64<List<String>>,org.gvsig.tools.util.GetItemWithSize64<List<String>>,org.gvsig.tools.util.Size64
public class XMLFileAsList
extends AbstractList<List<String>>
implements Closeable, org.gvsig.tools.util.GetItemWithSize64<List<String>>
- Author:
- jjdelcerro
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionXMLFileAsList(File text, Charset charset, String recordPath, List<String> geomPath, List<String> fieldPaths) XMLFileAsList(org.gvsig.fmap.dal.store.simplereader.virtualrows.RandomAccessFileReader reader, org.gvsig.fmap.dal.store.simplereader.virtualrows.RecordsFile index, String recordPath, List<String> geomPath, List<String> fieldPaths) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final voidcreateIndex(File indexFile, org.gvsig.tools.task.SimpleTaskStatus status) get(int index) get64(long position) intbooleanstatic voidvoidsetCombineMode(int combineMode) intsize()longsize64()Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Field Details
-
COMBINE_NONE
public static final int COMBINE_NONE- See Also:
-
COMBINE_FIRST_NOT_NULL
public static final int COMBINE_FIRST_NOT_NULL- See Also:
-
-
Constructor Details
-
XMLFileAsList
public XMLFileAsList(File text, Charset charset, String recordPath, List<String> geomPath, List<String> fieldPaths) throws IOException - Throws:
IOException
-
XMLFileAsList
public XMLFileAsList(org.gvsig.fmap.dal.store.simplereader.virtualrows.RandomAccessFileReader reader, org.gvsig.fmap.dal.store.simplereader.virtualrows.RecordsFile index, String recordPath, List<String> geomPath, List<String> fieldPaths) throws IOException - Throws:
IOException
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
get
-
get64
-
size
public int size() -
size64
public long size64()- Specified by:
size64in interfaceorg.gvsig.tools.util.Size64
-
getCombineMode
public int getCombineMode() -
setCombineMode
public void setCombineMode(int combineMode) -
loadIndex
public boolean loadIndex(File fileIndex, org.gvsig.tools.task.SimpleTaskStatus status) throws IOException - Throws:
IOException
-
createIndex
public final void createIndex(File indexFile, org.gvsig.tools.task.SimpleTaskStatus status) throws IOException - Throws:
IOException
-
main
- Throws:
Exception
-