edu.sc.seis.seisFile.mseed
Class Utility
java.lang.Object
edu.sc.seis.seisFile.mseed.Utility
public class Utility
- extends java.lang.Object
Utility.java
Created: Fri Apr 2 14:28:55 1999
Method Summary |
static int |
bytesToInt(byte a)
|
static int |
bytesToInt(byte[] info,
int i,
boolean swapBytes)
|
static int |
bytesToInt(byte a,
byte b,
boolean swapBytes)
|
static int |
bytesToInt(byte a,
byte b,
byte c,
boolean swapBytes)
|
static int |
bytesToInt(byte a,
byte b,
byte c,
byte d,
boolean swapBytes)
|
static short |
bytesToShort(byte hi,
byte low,
boolean swapBytes)
|
static int |
extractInteger(byte[] info,
int start,
int length)
|
static java.lang.String |
extractString(byte[] info,
int start,
int length)
|
static java.lang.String |
extractVarString(byte[] info,
int start,
int length)
|
static byte[] |
floatToByteArray(float a)
|
static byte[] |
format(byte[] source,
int start,
int end)
|
static void |
insertFloat(float value,
byte[] dest,
int pos)
Inserts float into dest at index pos |
static byte[] |
intToByteArray(int a)
|
static void |
main(java.lang.String[] args)
|
static byte[] |
pad(byte[] source,
int requiredBytes,
byte paddingByte)
|
static int |
uBytesToInt(byte a)
|
static int |
uBytesToInt(byte a,
byte b,
boolean swapBytes)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utility
public Utility()
extractInteger
public static int extractInteger(byte[] info,
int start,
int length)
extractString
public static java.lang.String extractString(byte[] info,
int start,
int length)
extractVarString
public static java.lang.String extractVarString(byte[] info,
int start,
int length)
bytesToShort
public static short bytesToShort(byte hi,
byte low,
boolean swapBytes)
bytesToInt
public static int bytesToInt(byte a)
uBytesToInt
public static int uBytesToInt(byte a)
bytesToInt
public static int bytesToInt(byte[] info,
int i,
boolean swapBytes)
bytesToInt
public static int bytesToInt(byte a,
byte b,
boolean swapBytes)
uBytesToInt
public static int uBytesToInt(byte a,
byte b,
boolean swapBytes)
bytesToInt
public static int bytesToInt(byte a,
byte b,
byte c,
boolean swapBytes)
bytesToInt
public static int bytesToInt(byte a,
byte b,
byte c,
byte d,
boolean swapBytes)
intToByteArray
public static byte[] intToByteArray(int a)
floatToByteArray
public static byte[] floatToByteArray(float a)
insertFloat
public static void insertFloat(float value,
byte[] dest,
int pos)
- Inserts float into dest at index pos
pad
public static byte[] pad(byte[] source,
int requiredBytes,
byte paddingByte)
format
public static byte[] format(byte[] source,
int start,
int end)
main
public static void main(java.lang.String[] args)