|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.iosp.nowrad.NOWRadheader
public class NOWRadheader
Created by IntelliJ IDEA. User: yuanho Date: Feb 10, 2010 Time: 11:21:19 AM To change this template use File | Settings | File Templates.
Field Summary | |
---|---|
static String[] |
mons
|
Constructor Summary | |
---|---|
NOWRadheader()
|
Method Summary | |
---|---|
static int |
bytesToInt(byte[] bytes,
boolean swapBytes)
convert bytes into integer |
static int |
bytesToInt(byte a,
byte b,
boolean swapBytes)
Concatenate two bytes to a 32-bit int value. |
void |
close()
Close the file. |
int |
convertShort2unsignedInt(short b)
convert short to unsigned integer |
short |
convertunsignedByte2Short(byte b)
convert unsigned byte to short |
void |
flush()
Flush all data buffers to disk. |
byte[] |
getData(int offset)
|
static Date |
getDate(int julianDays,
int msecs)
get jave date |
boolean |
isValidFile(RandomAccessFile raf)
check if this file is a nids / tdwr file |
void |
setProperty(String name,
String value)
|
static int |
shortsToInt(short s1,
short s2,
boolean swapBytes)
convert two short into a integer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String[] mons
Constructor Detail |
---|
public NOWRadheader()
Method Detail |
---|
public boolean isValidFile(RandomAccessFile raf)
raf
- input file
public byte[] getData(int offset) throws Exception
Exception
public void setProperty(String name, String value)
public static int shortsToInt(short s1, short s2, boolean swapBytes)
s1
- short ones2
- short twoswapBytes
- if swap bytes
public static int bytesToInt(byte[] bytes, boolean swapBytes)
bytes
- bytes arrayswapBytes
- if need to swap
public static int bytesToInt(byte a, byte b, boolean swapBytes)
a
- high order byteb
- low order byteswapBytes
- byte order swap flag
public short convertunsignedByte2Short(byte b)
b
- convert this unsigned byte
public int convertShort2unsignedInt(short b)
b
-
public static Date getDate(int julianDays, int msecs)
julianDays
- msecs
-
public void flush() throws IOException
IOException
public void close() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |