|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
ch.unizh.ini.jaer.projects.opticalflow.io.MotionInputStream
public class MotionInputStream
An input stream of motion data. This class deserializes MotionData from the input stream.
| Field Summary |
|---|
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
MotionInputStream(java.io.FileInputStream is)
Creates a new instance of MotionInputStream |
|
| Method Summary | |
|---|---|
float |
getFractionalPosition()
|
java.beans.PropertyChangeSupport |
getSupport()
|
void |
mark()
mark the current position. |
int |
position()
return position in events |
void |
position(int n)
set position in units of the file, e.g. |
MotionData |
readData()
Reads and deserializes a MotionData object from the input stream |
void |
rewind()
rewind to the start, or to the marked position, if it has been set |
void |
setFractionalPosition(float frac)
Sets fractional position in units of the file |
void |
setSupport(java.beans.PropertyChangeSupport support)
|
long |
size()
|
void |
unmark()
clear any marked position |
| Methods inherited from class java.io.DataInputStream |
|---|
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes |
| Methods inherited from class java.io.FilterInputStream |
|---|
available, close, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MotionInputStream(java.io.FileInputStream is)
throws java.io.IOException
is - the input stream
java.io.IOException| Method Detail |
|---|
public MotionData readData()
throws java.io.IOException
java.io.IOExceptionpublic float getFractionalPosition()
getFractionalPosition in interface InputDataFileInterface
public void mark()
throws java.io.IOException
InputDataFileInterface
mark in interface InputDataFileInterfacejava.io.IOException - if there is some error in reading the datapublic int position()
InputDataFileInterface
position in interface InputDataFileInterfacepublic void position(int n)
InputDataFileInterface
position in interface InputDataFileInterfacen - the number to position to
public void rewind()
throws java.io.IOException
InputDataFileInterface
rewind in interface InputDataFileInterfacejava.io.IOExceptionpublic void setFractionalPosition(float frac)
InputDataFileInterface
setFractionalPosition in interface InputDataFileInterfacefrac - 0-1 float range, 0 at start, 1 at endpublic long size()
size in interface InputDataFileInterfacepublic void unmark()
InputDataFileInterface
unmark in interface InputDataFileInterfacepublic java.beans.PropertyChangeSupport getSupport()
public void setSupport(java.beans.PropertyChangeSupport support)
|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||