|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectio.FrameWriter
public class FrameWriter
Constructor Summary | |
---|---|
FrameWriter(int frameSize)
Generate a FrameWriter that writes to stdout |
|
FrameWriter(int frameSize,
boolean ufv)
Generate a FrameWriter that writes to stdout |
|
FrameWriter(int frameSize,
java.lang.String fileName)
Generate a FrameWriter that writes to the given file |
|
FrameWriter(int frameSize,
java.lang.String fileName,
boolean ufv)
Generate a FrameWriter that writes to the given file |
Method Summary | |
---|---|
void |
close()
|
void |
finalize()
In the end, close the data file to prevent data loss! |
void |
write(double[] buf)
To write the frame, pack the doubles in a byte array |
static void |
writeDoubleArray(java.io.OutputStream os,
double[] buf)
Write a double array to the given stream (raw) |
static void |
writeUFV(java.io.OutputStream os,
double[] buf)
Write UFVs: blocks of floats, for compatibility with the old recognition system |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FrameWriter(int frameSize) throws java.io.IOException
frameSize
- size of output frames
java.io.IOException
public FrameWriter(int frameSize, boolean ufv) throws java.io.IOException
frameSize
- size of output frames
java.io.IOException
public FrameWriter(int frameSize, java.lang.String fileName) throws java.io.IOException
frameSize
- fileName
-
java.io.IOException
public FrameWriter(int frameSize, java.lang.String fileName, boolean ufv) throws java.io.IOException
frameSize
- fileName
-
java.io.IOException
Method Detail |
---|
public void close() throws java.io.IOException
java.io.IOException
public void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void write(double[] buf) throws java.io.IOException
buf
-
java.io.IOException
public static void writeDoubleArray(java.io.OutputStream os, double[] buf) throws java.io.IOException
os
- OutputStream to usebuf
-
java.io.IOException
public static void writeUFV(java.io.OutputStream os, double[] buf) throws java.io.IOException
os
- buf
-
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |