T - public class StreamTwitterStatusList<T extends USMFStatus> extends AbstractStreamBackedList<T> implements TwitterStatusList<T>
USMFStatus instances using various methods.clz, consumed, headerLength, isBinary, recordLength, sizemodCount| Modifier | Constructor and Description |
|---|---|
protected |
StreamTwitterStatusList(InputStream stream,
int size,
boolean isBinary,
int headerLength,
int recordLength,
Class<? extends GeneralJSON> inputClass,
Class<T> instanceClass,
String charset) |
protected |
StreamTwitterStatusList(InputStream stream,
int size,
boolean isBinary,
int headerLength,
int recordLength,
Class<T> clazz) |
protected |
StreamTwitterStatusList(InputStream stream,
int size,
boolean isBinary,
int headerLength,
int recordLength,
Class<T> clazz,
String charset) |
| Modifier and Type | Method and Description |
|---|---|
String |
asciiHeader()
Header for ascii output.
|
byte[] |
binaryHeader()
Header for binary output.
|
protected T |
newElementInstance()
Override this id your instances can't be constructed with a no-args ctr
|
static <T extends USMFStatus> |
read(BufferedInputStream stream,
int nTweets,
Class<? extends GeneralJSON> inputClass,
Class<T> instanceClass,
String charset)
Construct a new StreamTwitterStatusList from the given input stream.
|
static <T extends USMFStatus> |
read(BufferedInputStream stream,
int nTweets,
Class<T> clz)
Construct a new StreamTwitterStatusList from the given input stream.
|
static <T extends USMFStatus> |
read(BufferedInputStream stream,
int nTweets,
Class<T> clazz,
String charset)
Construct a new StreamTwitterStatusList from the given input stream.
|
static StreamTwitterStatusList<USMFStatus> |
read(InputStream stream)
Construct a new StreamTwitterStatusList from the given input stream.
|
static StreamTwitterStatusList<USMFStatus> |
read(InputStream stream,
int nTweets)
Construct a new StreamTwitterStatusList from the given input stream.
|
static <T extends USMFStatus> |
read(InputStream stream,
int nTweets,
Class<? extends GeneralJSON> inputClass,
Class<T> instanceClass) |
static <T extends USMFStatus> |
read(InputStream stream,
int nTweets,
Class<T> clazz)
Construct a new StreamTwitterStatusList from the given input stream.
|
static StreamTwitterStatusList<USMFStatus> |
read(InputStream stream,
int nTweets,
String charset)
Construct a new StreamTwitterStatusList from the given input stream.
|
static StreamTwitterStatusList<USMFStatus> |
read(InputStream stream,
String charset)
Construct a new StreamTwitterStatusList from the given input stream.
|
static StreamTwitterStatusList<USMFStatus> |
readUSMF(InputStream stream,
Class<? extends GeneralJSON> generalJSON) |
static StreamTwitterStatusList<USMFStatus> |
readUSMF(InputStream stream,
Class<? extends GeneralJSON> generalJSON,
String charset) |
static StreamTwitterStatusList<USMFStatus> |
readUSMF(InputStream stream,
int nTweets,
Class<? extends GeneralJSON> generalJSON) |
static StreamTwitterStatusList<USMFStatus> |
readUSMF(InputStream stream,
int nTweets,
Class<? extends GeneralJSON> generalJSON,
String charset) |
void |
writeASCII(PrintWriter out)
Write the content of this as ascii to out.
|
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
consumed, listIterator, randomSubList, readRecord, readRecordASCII, remaining, sizeadd, addAll, get, iterator, remove, setadd, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitrandomSubListadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamprotected StreamTwitterStatusList(InputStream stream, int size, boolean isBinary, int headerLength, int recordLength, Class<T> clazz, String charset) throws IOException
IOExceptionprotected StreamTwitterStatusList(InputStream stream, int size, boolean isBinary, int headerLength, int recordLength, Class<? extends GeneralJSON> inputClass, Class<T> instanceClass, String charset) throws IOException
IOExceptionprotected StreamTwitterStatusList(InputStream stream, int size, boolean isBinary, int headerLength, int recordLength, Class<T> clazz) throws IOException
IOExceptionprotected T newElementInstance()
AbstractStreamBackedListnewElementInstance in class AbstractStreamBackedList<T extends USMFStatus>public static StreamTwitterStatusList<USMFStatus> read(InputStream stream, int nTweets) throws IOException
stream - the input streamnTweets - of tweets to read from this streamIOException - if an error occurs reading from the streampublic static StreamTwitterStatusList<USMFStatus> read(InputStream stream) throws IOException
stream - the input streamIOException - if an error occurs reading from the streampublic static StreamTwitterStatusList<USMFStatus> read(InputStream stream, int nTweets, String charset) throws IOException
stream - the input streamnTweets - of tweets to read from this streamcharset - the charset used to read the streamIOException - if an error occurs reading from the streampublic static StreamTwitterStatusList<USMFStatus> read(InputStream stream, String charset) throws IOException
stream - the input streamcharset - the charset of the underlying streamIOException - if an error occurs reading from the streampublic static <T extends USMFStatus> StreamTwitterStatusList<T> read(InputStream stream, int nTweets, Class<T> clazz) throws IOException
T - the type of the USMFStatus instances returnedstream - the input streamnTweets - of tweets to read from this streamclazz - the class to instantiateIOException - if an error occurs reading from the streampublic static StreamTwitterStatusList<USMFStatus> readUSMF(InputStream stream, Class<? extends GeneralJSON> generalJSON) throws IOException
stream - generalJSON - IOExceptionpublic static StreamTwitterStatusList<USMFStatus> readUSMF(InputStream stream, Class<? extends GeneralJSON> generalJSON, String charset) throws IOException
stream - generalJSON - charset - the charset to read withIOExceptionpublic static StreamTwitterStatusList<USMFStatus> readUSMF(InputStream stream, int nTweets, Class<? extends GeneralJSON> generalJSON, String charset) throws IOException
stream - nTweets - number of tweets to readgeneralJSON - charset - the charset to read withIOExceptionpublic static StreamTwitterStatusList<USMFStatus> readUSMF(InputStream stream, int nTweets, Class<? extends GeneralJSON> generalJSON) throws IOException
stream - nTweets - generalJSON - IOExceptionpublic static <T extends USMFStatus> StreamTwitterStatusList<T> read(InputStream stream, int nTweets, Class<? extends GeneralJSON> inputClass, Class<T> instanceClass) throws IOException
T - stream - nTweets - inputClass - the class of used by the USMFStatus instances to readinstanceClass - the class of the USMFStatus instancesIOExceptionpublic static <T extends USMFStatus> StreamTwitterStatusList<T> read(BufferedInputStream stream, int nTweets, Class<? extends GeneralJSON> inputClass, Class<T> instanceClass, String charset) throws IOException
T - the instance typestream - the input streamnTweets - the number of tweets expectedinputClass - the input classinstanceClass - the instance classcharset - the charset of the readerIOException - if an error occurs reading from the streampublic static <T extends USMFStatus> StreamTwitterStatusList<T> read(BufferedInputStream stream, int nTweets, Class<T> clz) throws IOException
T - the type of the USMFStats instances returnedstream - the input streamnTweets - of tweets to read from this streamclz - the class of local feature to readIOException - if an error occurs reading from the streampublic static <T extends USMFStatus> StreamTwitterStatusList<T> read(BufferedInputStream stream, int nTweets, Class<T> clazz, String charset) throws IOException
T - the type of status instance returnedstream - the input streamnTweets - of tweets to read from this streamclazz - the class of local feature to readcharset - the charset to read withIOException - if an error occurs reading from the streampublic void writeASCII(PrintWriter out) throws IOException
WriteableASCIIwriteASCII in interface WriteableASCIIout - sink to write toIOException - an error writing to outpublic String asciiHeader()
WriteableASCIIasciiHeader in interface WriteableASCIIpublic void writeBinary(DataOutput out) throws IOException
WriteableBinarywriteBinary in interface WriteableBinaryout - sink to write toIOException - an error writing to outpublic byte[] binaryHeader()
WriteableBinarybinaryHeader in interface WriteableBinary