public class Dictionary extends Object
| Constructor and Description |
|---|
Dictionary() |
| Modifier and Type | Method and Description |
|---|---|
int |
add(DefineTag tag)
This is the method used during encoding.
|
void |
add(int id,
DefineTag s)
This is method used during decoding.
|
void |
addFontFace(DefineFont defineFont) |
void |
addName(DefineTag s,
String name) |
boolean |
contains(DefineTag tag) |
boolean |
contains(int id) |
boolean |
contains(String name) |
DefineFont |
getFontFace(String name,
boolean bold,
boolean italic) |
int |
getId(DefineTag tag) |
int |
getNextId() |
DefineTag |
getTag(int idref) |
DefineTag |
getTag(String name) |
void |
setNextId(int nextId) |
public boolean contains(int id)
public boolean contains(DefineTag tag)
public int getId(DefineTag tag)
public int add(DefineTag tag)
public void add(int id,
DefineTag s)
throws IllegalArgumentException
id - s - IllegalArgumentException - if the dictionary already has that idpublic void addFontFace(DefineFont defineFont)
public DefineFont getFontFace(String name, boolean bold, boolean italic)
public boolean contains(String name)
public DefineTag getTag(int idref) throws IllegalArgumentException
idref - IllegalArgumentException - if the id is not definedpublic void setNextId(int nextId)
public int getNextId()
Copyright © 2018 The Apache Software Foundation. All rights reserved.