-
- All Implemented Interfaces:
-
java.io.Closeable
,java.io.Flushable
,java.lang.Appendable
,java.lang.AutoCloseable
public final class PclmWriter extends Writer
Writes a document using PCLm page description language as specified in "Wi-Fi Peer-to-Peer Services Print Technical Specification v1.1".
This format is a strict subset of PDF, so a PCLm file can be opened and inspected by ordinary PDF viewers.
IMPORTANT: This implementation does NOT yet support Duplex use cases.
See also: https://wwwimages2.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf
-
-
Field Summary
Fields Modifier and Type Field Description private final CharArray
writeBuffer
private final Object
lock
-
Constructor Summary
Constructors Constructor Description PclmWriter(OutputStream outputStream, PclmSettings settings)
-
Method Summary
Modifier and Type Method Description Unit
flush()
Unit
close()
Unit
write(CharArray chars, Integer offset, Integer length)
final Unit
write(RenderableDocument document)
Write a complete document in PCLm format final Integer
calculateJobPagesPerSet(RenderableDocument document)
Return the correct value for the Types.jobPagesPerSet value. -
Methods inherited from class com.hp.jipp.pdl.pclm.PclmWriter
append, append, append, write, write, write, write
-
Methods inherited from class java.lang.Appendable
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
PclmWriter
PclmWriter(OutputStream outputStream, PclmSettings settings)
-
-
Method Detail
-
write
final Unit write(RenderableDocument document)
Write a complete document in PCLm format
-
calculateJobPagesPerSet
final Integer calculateJobPagesPerSet(RenderableDocument document)
Return the correct value for the Types.jobPagesPerSet value.
-
-
-
-