netP5
Class Bytes

java.lang.Object
  extended by netP5.Bytes

public class Bytes
extends 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 String getAsString(byte[] theBytes)
           
static String getAsString(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(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(InputStream ins, File file)
           
static float toFloat(byte[] abyte0)
           
static int toInt(byte[] abyte0)
           
static int toIntBigEndian(InputStream theInputStream)
           
static int toIntLittleEndian(InputStream theInputStream)
           
static long toLong(byte[] abyte0)
           
static void toStream(OutputStream os, byte[] theBytes)
           
static void toStream(OutputStream os, File file)
           
static void toStream(OutputStream os, int i)
           
static void toStream(OutputStream os, String s)
           
static String toString(byte[] abyte0)
           
static String toString(byte[] abyte0, int i, int j)
           
static String toString(InputStream ins)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bytes

public Bytes()
Method Detail

getAsString

public static String getAsString(Object[] theObject)
converts an object array into a String that is formated like a list

Parameters:
theObject - Object[]
Returns:
String

getAsString

public static 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 String toString(byte[] abyte0,
                              int i,
                              int j)

toString

public static String toString(byte[] abyte0)

printBytes

public static void printBytes(byte[] byteArray)

toIntLittleEndian

public static int toIntLittleEndian(InputStream theInputStream)
                             throws IOException
Throws:
IOException

toIntBigEndian

public static int toIntBigEndian(InputStream theInputStream)
                          throws IOException
Throws:
IOException

toString

public static String toString(InputStream ins)
                       throws IOException
Throws:
IOException

toStream

public static void toStream(OutputStream os,
                            int i)
                     throws Exception
Throws:
Exception

toStream

public static void toStream(OutputStream os,
                            String s)
                     throws Exception
Throws:
Exception

toStream

public static void toStream(OutputStream os,
                            byte[] theBytes)
                     throws Exception
Throws:
Exception

toByteArray

public static byte[] toByteArray(InputStream ins)
                          throws IOException
Throws:
IOException

toFile

public static void toFile(InputStream ins,
                          File file)
                   throws FileNotFoundException,
                          IOException
Throws:
FileNotFoundException
IOException

toStream

public static void toStream(OutputStream os,
                            File file)
                     throws FileNotFoundException,
                            Exception
Throws:
FileNotFoundException
Exception


processing library oscP5 by Andreas Schlegel. (c) 2004-2012