|
Simulcast 4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.aisb.simulcast.util.Util
public class Util
Field Summary | |
---|---|
static char[] |
alphabet
|
static java.text.DecimalFormat |
fp1
|
static java.text.DecimalFormat |
fp2
|
static java.text.DecimalFormat |
fp3
|
static java.text.DecimalFormat |
lz2
|
static java.text.DecimalFormat |
lz6
|
static int |
MS_PER_DAY
|
static int |
MS_PER_HOUR
|
static int |
MS_PER_MIN
|
static int |
MS_PER_SEC
|
static int |
SERVER_READY_INTERVAL_SEC
|
static java.lang.String |
XML_HEADER
|
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static double |
acos(double value)
acos. |
static int |
adjustValue(int value,
double contrast,
int brightness)
adjustValue. |
static double |
asin(double value)
asin. |
static double |
atan(double value)
atan. |
static double |
cos(double degrees)
cos. |
static long |
decodeByteCount(java.lang.String count)
decodeByteCount. |
static long |
decodeTimeInterval(java.lang.String count)
decodeTimeInterval. |
static java.lang.String |
encodeByteCount(long nBytes)
encodeByteCount. |
static java.lang.String |
encodeContent(java.lang.String xml)
encodeContent. |
static java.lang.String |
encodeDateTime(long ms)
encodeDateTime. |
static java.lang.String |
encodeDuration(int ms)
encodeDuration. |
static java.lang.String |
encodeException(java.lang.Exception e)
encodeException. |
static java.lang.String |
encodeHostPort(java.lang.String addr)
encodeHostPort. |
static java.lang.String |
encodeThrowable(java.lang.Throwable t)
encodeThrowable. |
static java.lang.String |
encodeTimeInterval(long ms)
encodeTimeInterval. |
static void |
fill(byte[][][] array,
byte value)
fill. |
static void |
fill(int[][][] array,
int value)
|
static void |
fillBuffer(java.io.DataInputStream in,
byte[] buffer,
int needed)
fillBuffer. |
static boolean |
fillBuffer(java.io.DataInputStream in,
byte[] buffer,
int needed,
boolean eofOk)
|
static void |
fillBuffer(java.io.DataInputStream in,
byte[] buffer,
int offset,
int needed)
|
static boolean |
fillBuffer(java.io.DataInputStream in,
byte[] buffer,
int offset,
int needed,
boolean eofOk)
|
static java.lang.String |
getAcceptedLogEntry(java.net.Socket s)
getAcceptedLogEntry. |
static java.lang.String |
getEnv()
getEnv. |
static java.io.File |
getFile(java.lang.String path)
getFile. |
static java.io.InputStream |
getInputStream(java.lang.String path)
getInputStream. |
static int |
indexOf(int value,
int[] values)
|
static int |
indexOf(java.lang.Object o,
java.lang.Object[] os)
|
static int |
indexOf(java.lang.String string,
java.lang.String[] strings)
indexOf. |
static Log |
initLog(XmlParser parser)
initLog. |
static boolean |
inRange(double min,
double value,
double max)
inRange. |
static java.lang.String |
leftJustify(java.lang.String text,
int width)
leftJustify. |
static double |
max(double a,
double b)
|
static double |
max(double a,
double b,
double c,
double d)
|
static int |
max(int a,
int b)
max. |
static int |
max(int a,
int b,
int c,
int d)
|
static double |
min(double a,
double b)
|
static double |
min(double a,
double b,
double c,
double d)
|
static int |
min(int a,
int b)
min. |
static int |
min(int a,
int b,
int c,
int d)
|
static long |
min(long a,
long b)
|
static double |
modToRange(double min,
double value,
double max)
modToRange. |
static boolean |
oneOf(int value,
int[] values)
|
static boolean |
oneOf(java.lang.String string,
java.lang.String[] strings)
oneOf. |
static java.lang.String |
readString(java.io.File file)
readString. |
static java.lang.String |
rightJustify(java.lang.String text,
int width)
rightJustify. |
static java.lang.String |
setDirectorySeparator(java.lang.String path)
setDirectorySeparator. |
static double |
sin(double degrees)
sin. |
static void |
skipBytes(java.io.DataInput in,
int nBytes)
skipBytes. |
static void |
sleep(double seconds)
sleep. |
static void |
sleep(int ms)
|
static void |
sleep(long ms)
|
static java.lang.Thread |
startThread(java.lang.Runnable runnable)
startThread. |
static java.lang.Thread |
startThread(java.lang.Runnable runnable,
boolean daemon)
|
static double |
tan(double degrees)
tan. |
static void |
threadDump()
threadDump. |
static java.lang.String |
toHexString(byte b)
toHexString. |
static double |
toRange(double min,
double value,
double max)
|
static int |
toRange(int min,
int value,
int max)
toRange. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MS_PER_SEC
public static final int MS_PER_MIN
public static final int MS_PER_HOUR
public static final int MS_PER_DAY
public static final java.text.DecimalFormat lz2
public static final java.text.DecimalFormat lz6
public static final java.text.DecimalFormat fp1
public static final java.text.DecimalFormat fp2
public static final java.text.DecimalFormat fp3
public static final java.lang.String XML_HEADER
public static final char[] alphabet
public static final int SERVER_READY_INTERVAL_SEC
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static java.lang.String getEnv()
public static void skipBytes(java.io.DataInput in, int nBytes) throws java.lang.Exception
java.lang.Exception
public static java.lang.String encodeThrowable(java.lang.Throwable t)
public static int adjustValue(int value, double contrast, int brightness)
public static void fill(byte[][][] array, byte value)
public static void fill(int[][][] array, int value)
public static Log initLog(XmlParser parser) throws java.lang.Exception
java.lang.Exception
public static long decodeTimeInterval(java.lang.String count)
public static long decodeByteCount(java.lang.String count)
public static java.lang.String encodeContent(java.lang.String xml)
public static java.lang.String encodeHostPort(java.lang.String addr)
public static java.lang.String getAcceptedLogEntry(java.net.Socket s)
public static java.io.InputStream getInputStream(java.lang.String path) throws java.lang.Exception
java.lang.Exception
public static java.lang.String encodeTimeInterval(long ms)
public static java.lang.String encodeByteCount(long nBytes)
public static java.lang.String encodeException(java.lang.Exception e)
public static java.lang.String encodeDateTime(long ms)
public static java.lang.String encodeDuration(int ms)
public static java.lang.String leftJustify(java.lang.String text, int width)
public static java.lang.String rightJustify(java.lang.String text, int width)
public static void sleep(double seconds)
public static void sleep(int ms)
public static void sleep(long ms)
public static void fillBuffer(java.io.DataInputStream in, byte[] buffer, int needed) throws java.lang.Exception
java.lang.Exception
public static void fillBuffer(java.io.DataInputStream in, byte[] buffer, int offset, int needed) throws java.lang.Exception
java.lang.Exception
public static boolean fillBuffer(java.io.DataInputStream in, byte[] buffer, int needed, boolean eofOk) throws java.lang.Exception
java.lang.Exception
public static boolean fillBuffer(java.io.DataInputStream in, byte[] buffer, int offset, int needed, boolean eofOk) throws java.lang.Exception
java.lang.Exception
public static int min(int a, int b)
public static int min(int a, int b, int c, int d)
public static long min(long a, long b)
public static double min(double a, double b)
public static double min(double a, double b, double c, double d)
public static int max(int a, int b)
public static int max(int a, int b, int c, int d)
public static double max(double a, double b)
public static double max(double a, double b, double c, double d)
public static boolean inRange(double min, double value, double max)
public static int toRange(int min, int value, int max)
public static double toRange(double min, double value, double max)
public static double modToRange(double min, double value, double max)
public static int indexOf(java.lang.String string, java.lang.String[] strings)
public static int indexOf(int value, int[] values)
public static int indexOf(java.lang.Object o, java.lang.Object[] os)
public static boolean oneOf(java.lang.String string, java.lang.String[] strings)
public static boolean oneOf(int value, int[] values)
public static java.lang.String toHexString(byte b)
public static java.lang.Thread startThread(java.lang.Runnable runnable)
public static java.lang.Thread startThread(java.lang.Runnable runnable, boolean daemon)
public static double sin(double degrees)
public static double cos(double degrees)
public static double tan(double degrees)
public static double asin(double value)
public static double acos(double value)
public static double atan(double value)
public static java.lang.String readString(java.io.File file) throws java.lang.Exception
java.lang.Exception
public static java.io.File getFile(java.lang.String path)
public static java.lang.String setDirectorySeparator(java.lang.String path)
public static void threadDump()
|
Simulcast 4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |