|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.text.AbstractWriter
com.inet.html.InetHtmlWriter
public class InetHtmlWriter
Write the InetHtmlDocument as text/plain. Some protected method have the same signature
like the Sun javax.swing.text.html.HTMLWriter to make it easer to port to this implementation.
As a 'special feature' this writer can replace image source links, which is useful for e-mails
for instance.
Constructor Summary | |
---|---|
InetHtmlWriter(java.io.Writer out,
javax.swing.text.Document doc,
int pos,
int len)
Create a new HTM4Writer |
Method Summary | |
---|---|
int |
getEndOffset()
|
void |
registerImageSRCreplace(java.util.Map<java.lang.String,java.lang.String> imageReplaceMap)
Registers an image SRC replace map at this writer. |
void |
setInlineMode(boolean inlineMode)
Sets the writer to inline-CSS mode. |
static void |
setSorted(boolean sorted)
Enable or disable the attribute sorting of the writer. |
void |
write()
|
Methods inherited from class javax.swing.text.AbstractWriter |
---|
getLineSeparator, getStartOffset, setLineSeparator |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InetHtmlWriter(java.io.Writer out, javax.swing.text.Document doc, int pos, int len)
out
- any Writerdoc
- a HTML4Documentpos
- the start position of the document that should be written.len
- the length of data that should be writtenMethod Detail |
---|
public void write() throws javax.swing.text.BadLocationException, java.io.IOException
write
in class javax.swing.text.AbstractWriter
javax.swing.text.BadLocationException
java.io.IOException
public void registerImageSRCreplace(java.util.Map<java.lang.String,java.lang.String> imageReplaceMap)
imageReplaceMap
- Key=original location, Value=new locationpublic int getEndOffset()
getEndOffset
in class javax.swing.text.AbstractWriter
public static void setSorted(boolean sorted)
InetHtmlWriter
on the current VM! Note: This will
sorted
- true, if the attributes should be sortedpublic void setInlineMode(boolean inlineMode)
inlineMode
- true to activate the inline mode, false to write a normal html content
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |