com.github.stephenc.javaisotools.udflib.tools
Class BinaryTools

java.lang.Object
  extended by com.github.stephenc.javaisotools.udflib.tools.BinaryTools

public class BinaryTools
extends Object


Constructor Summary
BinaryTools()
           
 
Method Summary
static int getUInt16BytesFromInt(int value, byte[] target, int start)
           
static int getUInt32BytesFromLong(long value, byte[] target, int start)
           
static int getUInt64BytesFromLong(long value, byte[] target, int start)
           
static byte[] readByteArray(InputStream myInputStream, int length)
           
static int readUInt16AsInt(RandomAccessFile myRandomAccessFile)
           
static int readUInt32AsInt(RandomAccessFile myRandomAccessFile)
           
static long readUInt32AsLong(InputStream myInputStream)
           
static long readUInt32AsLong(RandomAccessFile myRandomAccessFile)
           
static long readUInt64AsLong(InputStream myInputStream)
           
static long readUInt64AsLong(RandomAccessFile myRandomAccessFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryTools

public BinaryTools()
Method Detail

readUInt64AsLong

public static long readUInt64AsLong(RandomAccessFile myRandomAccessFile)
                             throws IOException
Throws:
IOException

readUInt32AsLong

public static long readUInt32AsLong(RandomAccessFile myRandomAccessFile)
                             throws IOException
Throws:
IOException

readUInt32AsInt

public static int readUInt32AsInt(RandomAccessFile myRandomAccessFile)
                           throws IOException
Throws:
IOException

readUInt16AsInt

public static int readUInt16AsInt(RandomAccessFile myRandomAccessFile)
                           throws IOException
Throws:
IOException

getUInt64BytesFromLong

public static int getUInt64BytesFromLong(long value,
                                         byte[] target,
                                         int start)

getUInt32BytesFromLong

public static int getUInt32BytesFromLong(long value,
                                         byte[] target,
                                         int start)

getUInt16BytesFromInt

public static int getUInt16BytesFromInt(int value,
                                        byte[] target,
                                        int start)

readUInt32AsLong

public static long readUInt32AsLong(InputStream myInputStream)
                             throws IOException
Throws:
IOException

readUInt64AsLong

public static long readUInt64AsLong(InputStream myInputStream)
                             throws IOException
Throws:
IOException

readByteArray

public static byte[] readByteArray(InputStream myInputStream,
                                   int length)
                            throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.