|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.dviware.dvitype.DviDisassemble
public class DviDisassemble
This class provides a command line tool to disassemble a DVI file.
| Field Summary | |
|---|---|
protected static java.lang.String |
PROP_CONFIG
The constant PROP_CONFIG contains the name of the property for the configuration resource to use. |
| Constructor Summary | |
|---|---|
DviDisassemble(java.io.PrintStream out)
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
bop(int off,
int[] c,
int p)
A DVI bop instruction has been encountered. |
void |
down(int off,
int b)
A DVI down instruction has been encountered. |
void |
eop(int off)
A DVI eop instruction has been encountered. |
void |
fnt(int off,
int k)
A DVI fnt instruction has been encountered. |
void |
fntDef(int off,
int k,
int c,
int s,
int d,
java.lang.String name)
A DVI fntDef instruction has been encountered. |
static void |
main(java.lang.String[] args)
The command line interface to dvitype. |
void |
nop(int off)
A DVI nop instruction has been encountered. |
void |
pop(int off)
A DVI pop instruction has been encountered. |
void |
post(int off,
int bop,
int num,
int den,
int mag,
int l,
int u,
int sp,
int tp)
A DVI post instruction has been encountered. |
void |
postPost(int off,
int bop,
int id)
Invoke the callback on a POST_POST instruction. |
void |
pre(int off,
int id,
int num,
int den,
int mag,
java.lang.String comment)
A DVI pre instruction has been encountered. |
protected static void |
process(java.lang.String arg,
java.util.logging.Logger logger)
Process an input file. |
void |
push(int off)
A DVI push instruction has been encountered. |
void |
putChar(int off,
int c)
A DVI put_char instruction has been encountered. |
void |
putRule(int off,
int a,
int b)
A DVI put_rule instruction has been encountered. |
void |
right(int off,
int b)
A DVI right instruction has been encountered. |
void |
setChar(int off,
int c)
A DVI set_char instruction has been encountered. |
void |
setRule(int off,
int a,
int b)
A DVI set_rule instruction has been encountered. |
void |
undef(int off,
int opcode,
java.io.InputStream stream)
A DVI undefined instruction has been encountered. |
void |
w(int off,
int b)
A DVI w instruction has been encountered. |
void |
w0(int off)
A DVI w0 instruction has been encountered. |
void |
x(int off,
int b)
A DVI x instruction has been encountered. |
void |
x0(int off)
A DVI x0 instruction has been encountered. |
void |
xxx(int off,
byte[] x)
A DVI xxx instruction has been encountered. |
void |
y(int off,
int b)
A DVI y instruction has been encountered. |
void |
y0(int off)
A DVI y0 instruction has been encountered. |
void |
z(int off,
int b)
A DVI z instruction has been encountered. |
void |
z0(int off)
A DVI z0 instruction has been encountered. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String PROP_CONFIG
| Constructor Detail |
|---|
public DviDisassemble(java.io.PrintStream out)
out - the output stream| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - the command line arguments
protected static void process(java.lang.String arg,
java.util.logging.Logger logger)
arg - the resource name to processlogger - the logger
public void bop(int off,
int[] c,
int p)
bop in interface DviProcessoroff - the current byte position in the input streamc - the array of page number indicators. The array has length 10. It
is initialized from the count registers 0 to 9 at the time the
page is shipped out.p - the pointer to the previous bop instruction or -1 for
the first pageDviProcessor.bop(int, int[], int)
public void down(int off,
int b)
down in interface DviProcessoroff - the current byte position in the input streamb - the number of DVI units to move down. If negative then the
current position moves upwards.DviProcessor.down(int, int)public void eop(int off)
eop in interface DviProcessoroff - the current byte position in the input streamDviProcessor.eop(int)
public void fnt(int off,
int k)
fnt in interface DviProcessoroff - the current byte position in the input streamk - the new font number; this number is not negativeDviProcessor.fnt(int, int)
public void fntDef(int off,
int k,
int c,
int s,
int d,
java.lang.String name)
fntDef in interface DviProcessoroff - the current byte position in the input streamk - the number of the fontc - length of the font areas - length of the font named - the font areaname - the name of the fontDviProcessor.fntDef(int, int, int, int, int,
java.lang.String)public void nop(int off)
nop in interface DviProcessoroff - the current byte position in the input streamDviProcessor.nop(int)public void pop(int off)
pop in interface DviProcessoroff - the current byte position in the input streamDviProcessor.pop(int)
public void post(int off,
int bop,
int num,
int den,
int mag,
int l,
int u,
int sp,
int tp)
post in interface DviProcessoroff - the current byte position in the input streambop - the index of the last BOP instructionnum - the numeratorden - the denominatormag - the magnificationl - the maximum page heightu - the maximum page widthsp - stack depthtp - number of pagesDviProcessor.post(int, int, int, int, int, int,
int, int, int)
public void postPost(int off,
int bop,
int id)
postPost in interface DviProcessoroff - the offset in the file of this instructionbop - the index of the last BOP instructionid - the id of this DVI version. Usually this is 2.DviProcessor.postPost(int, int, int)
public void pre(int off,
int id,
int num,
int den,
int mag,
java.lang.String comment)
pre in interface DviProcessoroff - the current byte position in the input streamid - the id of this DVI version. Usually this is 2.num - the numeratorden - the denominatormag - the magnification in permillecomment - the comment stringDviProcessor.pre(int, int, int, int, int,
java.lang.String)public void push(int off)
push in interface DviProcessoroff - the current byte position in the input streamDviProcessor.push(int)
public void putChar(int off,
int c)
putChar in interface DviProcessoroff - the current byte positionc - the number of the character to setDviProcessor.putChar(int, int)
public void putRule(int off,
int a,
int b)
putRule in interface DviProcessoroff - the current byte position in the input streama - the widthb - the heightDviProcessor.putRule(int, int, int)
public void right(int off,
int b)
right in interface DviProcessoroff - the current byte position in the input streamb - the distance to move in DVI unitsDviProcessor.right(int, int)
public void setChar(int off,
int c)
setChar in interface DviProcessoroff - the current byte positionc - the number of the character to setDviProcessor.setChar(int, int)
public void setRule(int off,
int a,
int b)
setRule in interface DviProcessoroff - the current byte positiona - the widthb - the heightDviProcessor.setRule(int, int, int)
public void undef(int off,
int opcode,
java.io.InputStream stream)
undef in interface DviProcessoroff - the current byte positionopcode - the opcode encounteredstream - the input stream to read further bytes fromDviProcessor.undef(int, int, java.io.InputStream)
public void w(int off,
int b)
w in interface DviProcessoroff - the current byte position in the input streamb - the distance to add in DVI unitsDviProcessor.w(int, int)public void w0(int off)
w0 in interface DviProcessoroff - the current byte position in the input streamDviProcessor.w0(int)
public void x(int off,
int b)
x in interface DviProcessoroff - the current byte position in the input streamb - the distance to move in DVI unitsDviProcessor.x(int, int)public void x0(int off)
x0 in interface DviProcessoroff - the current byte position in the input streamDviProcessor.x0(int)
public void xxx(int off,
byte[] x)
xxx in interface DviProcessoroff - the current byte position in the input streamx - the array of bytes carrying the contentDviProcessor.xxx(int, byte[])
public void y(int off,
int b)
y in interface DviProcessoroff - the current byte position in the input streamb - the distance to moveDviProcessor.y(int, int)public void y0(int off)
y0 in interface DviProcessoroff - the current byte position in the input streamDviProcessor.y0(int)
public void z(int off,
int b)
z in interface DviProcessoroff - the current byte position in the input streamb - the distance to moveDviProcessor.z(int, int)public void z0(int off)
z0 in interface DviProcessoroff - the current byte position in the input streamDviProcessor.z0(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||