|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaer.eventio.AEInputStream
public class AEInputStream
An AE input stream that uses a generic InputStream such as a URL connection to an http server.
Field Summary | |
---|---|
protected java.util.ArrayList<java.lang.String> |
header
|
Constructor Summary | |
---|---|
AEInputStream(java.io.InputStream is)
|
Method Summary | |
---|---|
void |
close()
|
java.util.ArrayList<java.lang.String> |
getHeader()
Gets the header strings from the file |
protected void |
parseFileFormatVersion(java.lang.String s)
parses the file format version |
AEPacketRaw |
readAvailablePacket()
Reads all available events from the stream |
protected void |
readHeader()
reads the header comment lines. |
AEPacketRaw |
readPacketByNumber(int n)
Reads a raw event packet of n events |
AEPacketRaw |
readPacketByTime(int dt)
returns an AEPacketRaw at least dt long up to the max size of the buffer or until end-of-file. |
protected void |
skipHeader()
skips the header lines (if any) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList<java.lang.String> header
Constructor Detail |
---|
public AEInputStream(java.io.InputStream is) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public AEPacketRaw readAvailablePacket() throws java.io.IOException
java.io.IOException
public AEPacketRaw readPacketByNumber(int n) throws java.io.IOException
n
- the number of events to read
java.io.IOException
- if there is a problem, e.g. end of filepublic AEPacketRaw readPacketByTime(int dt) throws java.io.IOException
dt
- the timestamp different in units of the timestamp (usually us)
java.io.IOException
- if there is any problemprotected void skipHeader() throws java.io.IOException
java.io.IOException
protected void readHeader() throws java.io.IOException
java.io.IOException
protected void parseFileFormatVersion(java.lang.String s)
AEDataFile
public java.util.ArrayList<java.lang.String> getHeader()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
java.io.IOException
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |