|
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 file
public 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 problem
protected void skipHeader()
throws java.io.IOException
java.io.IOException
protected void readHeader()
throws java.io.IOException
java.io.IOExceptionprotected void parseFileFormatVersion(java.lang.String s)
AEDataFilepublic java.util.ArrayList<java.lang.String> getHeader()
public void close()
throws java.io.IOException
close in interface java.io.Closeablejava.io.IOException
|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||