Package com.infinitekind.util
Class StreamVector
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
com.infinitekind.util.StreamVector
- All Implemented Interfaces:
StreamObject
,java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable
,java.util.Collection
,java.util.List
,java.util.RandomAccess
public class StreamVector extends java.util.Vector implements StreamObject
Subclass of Vector that can read and write itself to
a stream.
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description StreamVector()
StreamVector(java.lang.String[] strings)
-
Method Summary
Modifier and Type Method Description StreamVector
deepClone()
boolean
isStreamTable()
boolean
isStreamVector()
void
readFrom(java.io.Reader str)
void
readFrom(java.lang.String str)
void
readTheRest(java.io.Reader str)
char
startingDelimiter()
void
writeTo(java.io.Writer out)
void
writeTo(java.io.Writer out, java.lang.String prefix)
java.lang.String
writeToString()
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
-
Constructor Details
-
StreamVector
public StreamVector() -
StreamVector
public StreamVector(java.lang.String[] strings)
-
-
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
java.io.IOException
-
writeTo
public void writeTo(java.io.Writer out) throws java.io.IOException- Specified by:
writeTo
in interfaceStreamObject
- Throws:
java.io.IOException
-
writeTo
public void writeTo(java.io.Writer out, java.lang.String prefix) throws java.io.IOException- Specified by:
writeTo
in interfaceStreamObject
- Throws:
java.io.IOException
-
writeToString
public java.lang.String writeToString()- Specified by:
writeToString
in interfaceStreamObject
-
readTheRest
- Specified by:
readTheRest
in interfaceStreamObject
- Throws:
StringEncodingException
java.io.IOException
-