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, elementDataFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidvoidvoidreadTheRest(Reader str) charvoidvoidMethods 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, trimToSizeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods 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:
isStreamTablein interfaceStreamObject
-
isStreamVector
public boolean isStreamVector()- Specified by:
isStreamVectorin interfaceStreamObject
-
startingDelimiter
public char startingDelimiter() -
readFrom
- Specified by:
readFromin interfaceStreamObject- Throws:
StringEncodingException
-
deepClone
-
readFrom
- Specified by:
readFromin interfaceStreamObject- Throws:
StringEncodingExceptionIOException
-
writeTo
- Specified by:
writeToin interfaceStreamObject- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceStreamObject- Throws:
IOException
-
writeToString
- Specified by:
writeToStringin interfaceStreamObject
-
readTheRest
- Specified by:
readTheRestin interfaceStreamObject- Throws:
StringEncodingExceptionIOException
-