public class Appendix
extends java.lang.Object
Constructor and Description |
---|
Appendix(java.io.File dir)
Initialize new appendix object by looking into File dir of the appendix package.
|
Appendix(java.lang.String path)
Initialize new appendix object indicated by String path.
|
Modifier and Type | Method and Description |
---|---|
int |
getAppendixType()
Returns a type of appendix package.
|
java.lang.String |
getPath()
Returns an appendix package path.
|
SubAppendix |
getSubAppendix(int index)
Returns sub-book object in the appendix package indicated by index.
|
int |
getSubAppendixCount()
Returns number of sub books in the appendix package.
|
SubAppendix[] |
getSubAppendixes()
Return a list of sub-books in the appendix package.
|
public Appendix(java.lang.String path) throws EBException
path
- Path of appendix package in String.EBException
- when error on initialization.public Appendix(java.io.File dir) throws EBException
Initialize new appendix object by looking into File dir of the appendix package.
dir
- Path of appendix package in FileEBException
- when error on initialization.public java.lang.String getPath()
Returns an appendix package path.
public int getAppendixType()
Returns a type of appendix package.
Book.DISC_EB
,
Book.DISC_EPWING
public int getSubAppendixCount()
Returns number of sub books in the appendix package.
public SubAppendix[] getSubAppendixes()
Return a list of sub-books in the appendix package.
public SubAppendix getSubAppendix(int index)
Returns sub-book object in the appendix package indicated by index.
index
- an index in the sub-books list.