Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## morfologik.fsa.core
Class FSAHelpers

    java.lang.Object
      morfologik.fsa.core.FSAHelpers

    public final class FSAHelpers

extends java.lang.Object

This class has several static utility methods for use with the FSA package.

Method Summary
`static java.lang.String` | `flagsToString(int flags)` Converts an integer with FSA flags to a human-readable string.
`static int` | `getFlags(int version)` Returns flags as an integer for a given version number.
`static byte` | `getVersion(int flags)` Returns a version number for a set of flags.
`static byte[]` | `resizeByteBuffer(byte[] buffer, int newSize)` Expand a byte array and copy the contents from the previous array to the new one.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### flagsToString

    public static java.lang.String flagsToString(int flags)

  Converts an integer with FSA flags to a human-readable string.

### getVersion

    public static byte getVersion(int flags)

  Returns a version number for a set of flags.

### getFlags

    public static int getFlags(int version)

  Returns flags as an integer for a given version number.

  Throws:
    `java.lang.RuntimeException` - if the version number is not recognized.

### resizeByteBuffer

    public static byte[] resizeByteBuffer(byte[] buffer,
                                          int newSize)

  Expand a byte array and copy the contents from the previous array to the new one.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD