Package net.cnri.util
Class StreamVector
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Object>
,Collection<Object>
,List<Object>
,RandomAccess
,SequencedCollection<Object>
,StreamObject
Subclass of Vector that can read and write itself to a stream.
- See Also:
-
Field Summary
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
void
void
readTheRest
(Reader str) char
void
void
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed
-
Constructor Details
-
StreamVector
public StreamVector()
-
-
Method Details
-
isStreamTable
public boolean isStreamTable()- Specified by:
isStreamTable
in interfaceStreamObject
-
isStreamVector
public boolean isStreamVector()- Specified by:
isStreamVector
in interfaceStreamObject
-
startingDelimiter
public char startingDelimiter() -
readFrom
- Specified by:
readFrom
in interfaceStreamObject
- Throws:
StringEncodingException
-
deepClone
-
readFrom
- Specified by:
readFrom
in interfaceStreamObject
- Throws:
StringEncodingException
IOException
-
writeTo
- Specified by:
writeTo
in interfaceStreamObject
- Throws:
IOException
-
writeTo
- Specified by:
writeTo
in interfaceStreamObject
- Throws:
IOException
-
writeToString
- Specified by:
writeToString
in interfaceStreamObject
-
readTheRest
- Specified by:
readTheRest
in interfaceStreamObject
- Throws:
StringEncodingException
IOException
-