|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.html5.jatl.HtmlFactory
@ApplicationScoped public class HtmlFactory
Factory to create HTML instances for the creation of HTML documents with Html
.
Constructor Summary | |
---|---|
HtmlFactory() |
Method Summary | |
---|---|
Html |
create(OutputStream output) Creates the Html instance based on the properties set to the factory. |
int |
getBufferSize() Returns the size of the buffer to write to. |
Charset |
getCharset() Returns the character set to use. |
void |
setBufferSize(int bufferSize) Sets the size of the buffer to write to. |
void |
setCharset(Charset charset) Sets the character set to use. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlFactory()
Method Detail |
---|
public int getBufferSize()
The default is set to 8192
.
public void setBufferSize(int bufferSize) throws IllegalArgumentException
The default is set to 8192
.
bufferSize
- the size of the buffer to write to.
IllegalArgumentException
- if buffer size is zero or less.
public Charset getCharset()
The default is set to UTF-8
.
public void setCharset(Charset charset) throws NullPointerException
The default is set to UTF-8
.
charset
- the character set to use.
NullPointerException
- if
charset
is
null
.
public Html create(OutputStream output) throws NullPointerException
Html
instance based on the properties set to the factory.
output
- the output to write to.
Html
instance.
NullPointerException
- if
output
is
null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |