netP5
Class Bytes
java.lang.Object
netP5.Bytes
public class Bytes
- extends java.lang.Object
Constructor Summary |
Bytes()
|
Method Summary |
static byte[] |
append(byte[] abyte0,
byte[] abyte1)
|
static byte[] |
append(byte[] abyte0,
byte[] abyte1,
byte[] abyte2)
|
static boolean |
areEqual(byte[] abyte0,
byte[] abyte1)
|
static byte[] |
copy(byte[] abyte0,
int i)
|
static byte[] |
copy(byte[] abyte0,
int i,
int j)
|
static java.lang.String |
getAsString(byte[] theBytes)
|
static java.lang.String |
getAsString(java.lang.Object[] theObject)
converts an object array into a String that is formated like a list |
static void |
merge(byte[] abyte0,
byte[] abyte1)
|
static void |
merge(byte[] abyte0,
byte[] abyte1,
int i)
|
static void |
merge(byte[] abyte0,
byte[] abyte1,
int i,
int j)
|
static void |
merge(byte[] abyte0,
byte[] abyte1,
int i,
int j,
int k)
|
static void |
printBytes(byte[] byteArray)
|
static byte[] |
toByteArray(java.io.InputStream ins)
|
static byte[] |
toBytes(int i)
|
static byte[] |
toBytes(int i,
byte[] abyte0)
|
static byte[] |
toBytes(long l)
|
static byte[] |
toBytes(long l,
byte[] abyte0)
|
static double |
toDouble(byte[] abyte0)
|
static void |
toFile(java.io.InputStream ins,
java.io.File file)
|
static float |
toFloat(byte[] abyte0)
|
static int |
toInt(byte[] abyte0)
|
static int |
toIntBigEndian(java.io.InputStream theInputStream)
|
static int |
toIntLittleEndian(java.io.InputStream theInputStream)
|
static long |
toLong(byte[] abyte0)
|
static void |
toStream(java.io.OutputStream os,
byte[] theBytes)
|
static void |
toStream(java.io.OutputStream os,
java.io.File file)
|
static void |
toStream(java.io.OutputStream os,
int i)
|
static void |
toStream(java.io.OutputStream os,
java.lang.String s)
|
static java.lang.String |
toString(byte[] abyte0)
|
static java.lang.String |
toString(byte[] abyte0,
int i,
int j)
|
static java.lang.String |
toString(java.io.InputStream ins)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Bytes
public Bytes()
getAsString
public static java.lang.String getAsString(java.lang.Object[] theObject)
- converts an object array into a String that is formated like a list
- Parameters:
theObject
- Object[]
- Returns:
- String
getAsString
public static java.lang.String getAsString(byte[] theBytes)
toInt
public static int toInt(byte[] abyte0)
toLong
public static long toLong(byte[] abyte0)
toFloat
public static float toFloat(byte[] abyte0)
toDouble
public static double toDouble(byte[] abyte0)
toBytes
public static byte[] toBytes(int i)
toBytes
public static byte[] toBytes(int i,
byte[] abyte0)
toBytes
public static byte[] toBytes(long l)
toBytes
public static byte[] toBytes(long l,
byte[] abyte0)
areEqual
public static boolean areEqual(byte[] abyte0,
byte[] abyte1)
append
public static byte[] append(byte[] abyte0,
byte[] abyte1)
append
public static byte[] append(byte[] abyte0,
byte[] abyte1,
byte[] abyte2)
copy
public static byte[] copy(byte[] abyte0,
int i)
copy
public static byte[] copy(byte[] abyte0,
int i,
int j)
merge
public static void merge(byte[] abyte0,
byte[] abyte1,
int i,
int j,
int k)
merge
public static void merge(byte[] abyte0,
byte[] abyte1,
int i)
merge
public static void merge(byte[] abyte0,
byte[] abyte1)
merge
public static void merge(byte[] abyte0,
byte[] abyte1,
int i,
int j)
toString
public static java.lang.String toString(byte[] abyte0,
int i,
int j)
toString
public static java.lang.String toString(byte[] abyte0)
printBytes
public static void printBytes(byte[] byteArray)
toIntLittleEndian
public static int toIntLittleEndian(java.io.InputStream theInputStream)
throws java.io.IOException
- Throws:
java.io.IOException
toIntBigEndian
public static int toIntBigEndian(java.io.InputStream theInputStream)
throws java.io.IOException
- Throws:
java.io.IOException
toString
public static java.lang.String toString(java.io.InputStream ins)
throws java.io.IOException
- Throws:
java.io.IOException
toStream
public static void toStream(java.io.OutputStream os,
int i)
throws java.lang.Exception
- Throws:
java.lang.Exception
toStream
public static void toStream(java.io.OutputStream os,
java.lang.String s)
throws java.lang.Exception
- Throws:
java.lang.Exception
toStream
public static void toStream(java.io.OutputStream os,
byte[] theBytes)
throws java.lang.Exception
- Throws:
java.lang.Exception
toByteArray
public static byte[] toByteArray(java.io.InputStream ins)
throws java.io.IOException
- Throws:
java.io.IOException
toFile
public static void toFile(java.io.InputStream ins,
java.io.File file)
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
toStream
public static void toStream(java.io.OutputStream os,
java.io.File file)
throws java.io.FileNotFoundException,
java.lang.Exception
- Throws:
java.io.FileNotFoundException
java.lang.Exception
processing library oscP5 by Andreas Schlegel. (c) 2010