public abstract class AbstractStreamingClient extends java.lang.Object implements LayoutedPagesConsumer, java.io.Serializable
FontInfo
.
Modifier and Type | Class and Description |
---|---|
static class |
AbstractStreamingClient.Client |
static class |
AbstractStreamingClient.Orientation |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
legalCopyright |
Constructor and Description |
---|
AbstractStreamingClient() |
Modifier and Type | Method and Description |
---|---|
void |
setCharsetToEmbed(java.lang.String charsetToEmbed)
Selects a character set for font embedding whose characters will be
embedded (if available in the selected fonts).
|
void |
setClient(AbstractStreamingClient.Client client)
Sets the client application as determined by the
client
argument. |
void |
setClientHost(java.lang.String clientHost)
Sets the host name of the remote client application.
|
void |
setClientPort(java.lang.Integer clientPort)
Sets the port number at which the client application is listening.
|
void |
setCompressOutput(java.lang.Boolean compressOutput)
Indicates whether or not the output will be compressed.
|
void |
setEmbedFonts(java.lang.Boolean embedFonts)
Activates font embedding if true, external font
referencing if false.
|
void |
setFromPage(java.lang.Integer fromPage)
Sets the first page to be included in the document.
|
void |
setOrientationRequested(AbstractStreamingClient.Orientation orientationRequested)
Informs the renderer of the orientation of the paper in the printer
as determined by the
orientationRequested argument. |
void |
setToPage(java.lang.Integer toPage)
Sets the last page (inclusive) to be included in the document.
|
public static final java.lang.String legalCopyright
public void setFromPage(java.lang.Integer fromPage)
fromPage
- an integer greater than zero and less than or equal to
toPage.java.lang.IllegalArgumentException
- if the above condition
is violated.public void setToPage(java.lang.Integer toPage)
toPage
- an integer greater than zero and greater than or equal
to fromPage.java.lang.IllegalArgumentException
- if the above condition
is violated.public void setEmbedFonts(java.lang.Boolean embedFonts)
true
.embedFonts
- whether fonts are embedded in the
document or external references are usedpublic void setCharsetToEmbed(java.lang.String charsetToEmbed)
"DEFAULT"
.charsetToEmbed
- one of the following values:
Charset.availableCharsets()
)
setEmbedFonts(java.lang.Boolean)
public void setCompressOutput(java.lang.Boolean compressOutput)
compressOutput
- a flag for enabling/disabling compressionpublic void setClient(AbstractStreamingClient.Client client)
client
argument.client
- one of the following values:
public void setClientHost(java.lang.String clientHost)
clientHost
- the host name of the remote client applicationsetClientPort(java.lang.Integer)
public void setClientPort(java.lang.Integer clientPort)
clientPort
- The port number at which the remote application is listening.java.lang.IllegalArgumentException
- if the port isn't an
unsigned 16 bit value.setClientHost(java.lang.String)
,
setClient(com.fourjs.report.runtime.AbstractStreamingClient.Client)
public void setOrientationRequested(AbstractStreamingClient.Orientation orientationRequested)
orientationRequested
argument.
Some printers (typically matrix printers) allow can be loaded with both
landscape and portrait paper sheets. For most printers however the printer
driver is not aware of the orientation of the paper sheets and so the jobs
misprint on one of the two paper types (typically landscape).
Calling this function allows to fix this deficiency manually.orientationRequested
- one of the following values: