|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nist.microanalysis.EPQTools.WriteRaw
public class WriteRaw
A simple class to assist writing raw binary files consisting of a matrix of data points of uniform length.
Copyright: Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain
Company: National Institute of Standards and Technology
| Field Summary | |
|---|---|
static java.lang.String |
FLOAT
Deprecated. |
static java.lang.String |
SIGNED
Deprecated. |
static java.lang.String |
UNSIGNED
Deprecated. |
| Constructor Summary | |
|---|---|
WriteRaw(int nRows,
int nCols,
int datumLength,
int itemSize,
java.io.FileOutputStream fos)
Deprecated. Use EPQTools.Ripple file instead |
|
WriteRaw(int nRows,
int nCols,
int datumLength,
int itemSize,
java.lang.String filename)
Deprecated. Use EPQTools.Ripple file instead |
|
| Method Summary | |
|---|---|
void |
close()
Deprecated. close - Closes the underlying file. |
java.io.OutputStream |
getStream(int row,
int col)
Deprecated. getStream - Get an instance of OutputStream configured correctly to write the datum at row, col. |
int |
nextColumn()
Deprecated. nextColumn - The next column ready to accept new data. |
int |
nextRow()
Deprecated. nextRow - The next row ready to accept new data. |
void |
writeHeader(java.lang.String filename)
Deprecated. Use EPQTools.Ripple file instead |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SIGNED
public static final java.lang.String UNSIGNED
public static final java.lang.String FLOAT
| Constructor Detail |
|---|
public WriteRaw(int nRows,
int nCols,
int datumLength,
int itemSize,
java.lang.String filename)
throws java.io.FileNotFoundException
nRows - intnCols - intdatumLength - int - The number of atomic data items in each of the
nRows*nCols data blocks.itemSize - int - The length of each atomic data item in bytes
(usually 1, 2, 4, or 8)filename - String
java.io.FileNotFoundException
public WriteRaw(int nRows,
int nCols,
int datumLength,
int itemSize,
java.io.FileOutputStream fos)
throws java.io.FileNotFoundException
nRows - intnCols - intdatumLength - int - The number of atomic data items in each of the
nRows*nCols data blocks.itemSize - int - The length of each atomic data item in bytes
(usually 1, 2, 4, or 8)fos - - A FileOutputStream into which to write the data
java.io.FileNotFoundException| Method Detail |
|---|
public void writeHeader(java.lang.String filename)
throws EPQException
filename - String
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
EPQExceptionpublic int nextRow()
public int nextColumn()
public java.io.OutputStream getStream(int row,
int col)
throws java.io.IOException
row - intcol - int
java.io.IOException
public void close()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||