|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tridas.io.formats.catras.CatrasFile
public class CatrasFile
Constructor Summary | |
---|---|
CatrasFile(TridasToCatrasDefaults defaults)
|
Method Summary | |
---|---|
IMetadataFieldSet |
getDefaults()
Gets the defaults that this file uses to save the file |
String |
getExtension()
Gets the extension to use for saving this file. |
byte[] |
getFileAsBytes()
|
static byte |
getIntAsByte(Integer value)
|
static byte[] |
getIntAsByteArray(Integer value)
|
static byte[] |
getIntAsBytePair(Integer value)
|
static byte[] |
getIntAsBytePair(Integer value,
Boolean littleEndian)
Extract the integer value from a byte pair according to endianess Horror! Java byte is signed! See: http://www.darksleep.com/player/JavaAndUnsignedTypes.html |
org.tridas.interfaces.ITridasSeries[] |
getSeries()
Get the series list. |
static Integer |
roundToNext128(Integer ringcount)
Takes an integer and rounds it to the nearest multiple of 128 |
void |
saveToDisk(OutputStream os)
An alternative to the normal saveToString() as this is a binary format |
String[] |
saveToString()
Saves the file to strings. |
void |
setDataValues(org.tridas.schema.TridasValues vals)
|
void |
setSeries(org.tridas.interfaces.ITridasSeries ser)
Set the series that this file represents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CatrasFile(TridasToCatrasDefaults defaults)
Method Detail |
---|
public IMetadataFieldSet getDefaults()
IDendroFile
getDefaults
in interface IDendroFile
IDendroFile.getDefaults()
public String getExtension()
IDendroFile
getExtension
in interface IDendroFile
public org.tridas.interfaces.ITridasSeries[] getSeries()
IDendroFile
getSeries
in interface IDendroFile
IDendroFile.getSeries()
public void setSeries(org.tridas.interfaces.ITridasSeries ser)
ser
- public void setDataValues(org.tridas.schema.TridasValues vals)
vals
- public byte[] getFileAsBytes() throws IOException
IOException
public static Integer roundToNext128(Integer ringcount)
ringcount
-
public static byte[] getIntAsBytePair(Integer value)
public static byte[] getIntAsBytePair(Integer value, Boolean littleEndian)
value
- - Integer value to convert (-32511 to 32767)littleEndian
- - use little-endian?
public static byte[] getIntAsByteArray(Integer value)
public static byte getIntAsByte(Integer value)
public void saveToDisk(OutputStream os) throws IOException, jxl.write.WriteException
os
-
IOException
jxl.write.WriteException
public String[] saveToString()
IDendroFile
saveToString
in interface IDendroFile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |