public class TemplateDoc extends WebDoc
WebDoc.HTTPCodeDATA_BYTE, DATA_STREAM| Constructor and Description |
|---|
TemplateDoc(File file) |
TemplateDoc(File file,
String prefix,
String suffix) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String placeholder,
String value)
Adds a placeholder and a refering value.
|
byte[] |
byteData()
If you want to return the documents data as a byte[],
you have to do that here.
|
void |
clear() |
void |
close()
This method is called after the transmission.
|
String |
dataType()
Specifies the Type of served data.
|
String |
mime()
This method has to return the MIME-Type of the Document.
|
String |
name()
This method has to return the FileName of the Document.
|
void |
replace()
Calculates the document.
|
long |
size()
This method has to return the size of the Document in bytes.
|
InputStream |
streamData()
If you want to return the documents data as a Stream,
you have to do that here.
|
getHeaders, getHttpCode, setHTTPCodepublic TemplateDoc(File file, String prefix, String suffix) throws IOException
IOExceptionpublic TemplateDoc(File file) throws IOException
IOExceptionpublic void add(String placeholder, String value)
placeholder - value - public void replace()
public void clear()
public long size()
WebDocpublic String mime()
WebDocpublic String name()
WebDocpublic byte[] byteData()
WebDocpublic InputStream streamData()
WebDocstreamData in class WebDocpublic String dataType()
WebDocCopyright © 2020 Software Atelier Kamber. All rights reserved.