morfologik.fsa
Class FSAHelpers

java.lang.Object
  extended by morfologik.fsa.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.
 
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.