Package com.adobe.fontengine.font
Class FontByteArray
- java.lang.Object
-
- com.adobe.fontengine.font.FontByteArray
-
- Direct Known Subclasses:
OTByteArray
public class FontByteArray extends java.lang.ObjectA sequence of bytes in an OpenType font file, with methods to access the basic types. The return type of the various accessors for the integral types isintwhenever the OpenType type fits in [-2^31 .. 2^31-1],longotherwise. The only exception isgetuint32asint
-
-
Constructor Summary
Constructors Constructor Description FontByteArray(int size)FontByteArray(FontInputStream in, int inStreamSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)byte[]getBytes(int index, int length)voidgetBytes(FontByteArray toArray, int toBufferOffset, int fromBufferOffset, int fromBufferLength)Copy 'fromBufferLength' bytes, starting at 'fromBufferOffset', from 'this' to 'toBufferOffset' in 'toArray'.intgetSize()inthashCode()voidwrite(java.io.OutputStream out)
-
-
-
Constructor Detail
-
FontByteArray
public FontByteArray(int size)
-
FontByteArray
public FontByteArray(FontInputStream in, int inStreamSize) throws java.io.IOException, InvalidFontException
- Throws:
java.io.IOExceptionInvalidFontException
-
-
Method Detail
-
getSize
public final int getSize()
-
getBytes
public final void getBytes(FontByteArray toArray, int toBufferOffset, int fromBufferOffset, int fromBufferLength)
Copy 'fromBufferLength' bytes, starting at 'fromBufferOffset', from 'this' to 'toBufferOffset' in 'toArray'.
-
getBytes
public final byte[] getBytes(int index, int length)
-
write
public void write(java.io.OutputStream out) throws java.io.IOException- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-