|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.backend.documentWriter.dvi.DviOutputStream
This class provides the methods to write to the dvi-Stream.
Constructor Summary | |
DviOutputStream(java.io.OutputStream theOutputStream)
Creates a new instance. |
Method Summary | |
void |
close()
|
int |
getStreamPosition()
Get the StreamPosition value. |
void |
writeByte(int theByte)
Writes a single byte to the outputstream. |
void |
writeCodeNumberAndArg(int[] codes,
int argNumber)
Write a value and the dvi code to the outputstream. |
void |
writeCodeNumberAndArg(int[] shortCodes,
int[] codes,
int argNumber)
Write a command with an number as argument. |
void |
writeNumber(int number,
int bytes)
Write a number to the outputstream. |
void |
writeString(java.lang.String string)
Write a string to the outputstream. |
void |
writeStringAndSize(java.lang.String string)
Write a string to the outputstream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DviOutputStream(java.io.OutputStream theOutputStream)
theOutputStream
- OutputStream
for dvi fileMethod Detail |
public void close() throws GeneralException, java.io.IOException
GeneralException
java.io.IOException
public int getStreamPosition()
public void writeByte(int theByte) throws GeneralException
theByte
- the output
GeneralException
- if an error occurspublic void writeNumber(int number, int bytes) throws GeneralException
number
- the numberbytes
- the number of bytes for the number
GeneralException
- if an error occurspublic void writeString(java.lang.String string) throws GeneralException
string
- the string
GeneralException
- if an error occurspublic void writeStringAndSize(java.lang.String string) throws GeneralException
string
- the string
GeneralException
- if an error occurspublic void writeCodeNumberAndArg(int[] codes, int argNumber) throws GeneralException
codes
- codes for one, two, ... long argumentargNumber
- the number for writing
GeneralException
- if an error occurspublic void writeCodeNumberAndArg(int[] shortCodes, int[] codes, int argNumber) throws GeneralException
shortCodes
- codes for numbers including the argumentcodes
- codes for longer argumentsargNumber
- the argument
GeneralException
- if an error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |