Package com.adobe.fontengine.font
Class FontByteArray
java.lang.Object
com.adobe.fontengine.font.FontByteArray
- Direct Known Subclasses:
OTByteArray
A 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 is
int whenever the OpenType type fits
in [-2^31 .. 2^31-1], long otherwise. The
only exception is getuint32asint-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal byte[]getBytes(int index, int length) final voidgetBytes(FontByteArray toArray, int toBufferOffset, int fromBufferOffset, int fromBufferLength) Copy 'fromBufferLength' bytes, starting at 'fromBufferOffset', from 'this' to 'toBufferOffset' in 'toArray'.final intgetSize()inthashCode()voidwrite(OutputStream out)
-
Constructor Details
-
FontByteArray
public FontByteArray(int size) -
FontByteArray
- Throws:
IOExceptionInvalidFontException
-
-
Method Details
-
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
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-