|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
net.sf.jaer.eventio.AEFileOutputStream
public class AEFileOutputStream
Class to stream out packets of events in binary. The file format (as of version 2.0) is
int32 address
int32 timestamp
repeated for the number of events in the file.
Prior to version 2.0 files, each address was an int16 address. The timestamp tick is 1us.
Field Summary |
---|
Fields inherited from class java.io.DataOutputStream |
---|
written |
Fields inherited from class java.io.FilterOutputStream |
---|
out |
Constructor Summary | |
---|---|
AEFileOutputStream(java.io.OutputStream os)
Creates a new instance of AEOutputStream. |
Method Summary | |
---|---|
void |
writeHeaderLine(java.lang.String s)
Writes a comment header line. |
void |
writePacket(AEPacketRaw ae)
Writes the packet out as sequence of address/timestamp's, just as they came as input from the device. |
Methods inherited from class java.io.DataOutputStream |
---|
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
Methods inherited from class java.io.FilterOutputStream |
---|
close, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.DataOutput |
---|
write |
Constructor Detail |
---|
public AEFileOutputStream(java.io.OutputStream os)
os
- an output stream, e.g. from new BufferedOutputStream(new FileOutputStream(File f)
.Method Detail |
---|
public void writePacket(AEPacketRaw ae) throws java.io.IOException
ae
- a raw addresse-event packet
java.io.IOException
public void writeHeaderLine(java.lang.String s) throws java.io.IOException
s
- the string
java.io.IOException
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |