Class ByteAccessUtilities
java.lang.Object
org.pentaho.reporting.libraries.fonts.ByteAccessUtilities
public class ByteAccessUtilities
extends java.lang.Object
Reads byte-data using a Big-Endian access schema. Big-Endian is used for TrueType fonts.
- Author:
- Thomas Morgner
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
readBytes
(byte[] data, int pos, int length) static float
readFixed
(byte[] data, int pos) static int
readLong
(byte[] data, int pos) static long
readLongDateTime
(byte[] data, int pos) static short
readShort
(byte[] data, int pos) static java.lang.String
readString
(byte[] data, int pos, int length, java.lang.String encoding) static long
readULong
(byte[] data, int pos) static int
readUShort
(byte[] data, int pos) static java.lang.String
readZString
(byte[] data, int pos, int maxLength, java.lang.String encoding) static int
readZStringOffset
(byte[] data, int pos, int maxLength) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
readUShort
public static int readUShort(byte[] data, int pos) -
readULong
public static long readULong(byte[] data, int pos) -
readFixed
public static float readFixed(byte[] data, int pos) -
readLongDateTime
public static long readLongDateTime(byte[] data, int pos) -
readBytes
public static byte[] readBytes(byte[] data, int pos, int length) -
readShort
public static short readShort(byte[] data, int pos) -
readLong
public static int readLong(byte[] data, int pos) -
readZStringOffset
public static int readZStringOffset(byte[] data, int pos, int maxLength) -
readZString
public static java.lang.String readZString(byte[] data, int pos, int maxLength, java.lang.String encoding) throws EncodingException - Throws:
EncodingException
-
readString
public static java.lang.String readString(byte[] data, int pos, int length, java.lang.String encoding) throws EncodingException - Throws:
EncodingException
-