Class TextFileAsList
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<String>,Collection<String>,List<String>,SequencedCollection<String>,org.gvsig.tools.util.GetItem64<String>,org.gvsig.tools.util.GetItemWithSize64<String>,org.gvsig.tools.util.Size64
public class TextFileAsList
extends AbstractList<String>
implements Closeable, org.gvsig.tools.util.GetItemWithSize64<String>
- Author:
- gvSIG Team
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionTextFileAsList(File text, File index, Charset charset) TextFileAsList(org.gvsig.fmap.dal.store.simplereader.virtualrows.RandomAccessFileReader reader, org.gvsig.fmap.dal.store.simplereader.virtualrows.RandomAccessFileIndex index) -
Method Summary
Methods inherited from class java.util.AbstractList
add, add, addAll, 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
-
Constructor Details
-
TextFileAsList
- Throws:
IOException
-
TextFileAsList
public TextFileAsList(org.gvsig.fmap.dal.store.simplereader.virtualrows.RandomAccessFileReader reader, org.gvsig.fmap.dal.store.simplereader.virtualrows.RandomAccessFileIndex index) throws IOException - Throws:
IOException
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
get
-
size
public int size()- Specified by:
sizein interfaceCollection<String>- Specified by:
sizein interfaceList<String>- Specified by:
sizein classAbstractCollection<String>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<String>- Specified by:
clearin interfaceList<String>- Overrides:
clearin classAbstractList<String>
-
size64
public long size64()- Specified by:
size64in interfaceorg.gvsig.tools.util.Size64
-
get64
- Specified by:
get64in interfaceorg.gvsig.tools.util.GetItem64<String>
-
main
- Throws:
Exception
-