public class BinaryGrammar
extends java.lang.Object
GrammarImplementation to capture the loaded
GrammarDocument.| Constructor and Description |
|---|
BinaryGrammar(java.net.URI src,
byte[] grammar)
Constructs a new object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte[] |
getGrammar()
Retrieves the contents of the binary grammar.
|
java.net.URI |
getUri()
Retrieves the URI of the grammar.
|
int |
hashCode() |
public BinaryGrammar(java.net.URI src,
byte[] grammar)
src - the URI of the grammargrammar - the binary grammar.public final java.net.URI getUri()
public final byte[] getGrammar()
public final int hashCode()
hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object obj)
equals in class java.lang.Object