Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.javax.print.ipp
Class IppRequest.RequestWriter  view IppRequest.RequestWriter download IppRequest.RequestWriter.java

java.lang.Object
  extended bygnu.javax.print.ipp.IppRequest.RequestWriter
Enclosing class:
IppRequest

class IppRequest.RequestWriter
extends java.lang.Object

Helper class used to write the attributes of a request into the supplied data output stream in the correct way.


Field Summary
private  java.io.DataOutputStream out
           
 
Constructor Summary
(package private) IppRequest.RequestWriter(java.io.DataOutputStream stream)
          Creates a RequestWriter.
 
Method Summary
private  void write(gnu.javax.print.ipp.attribute.CharsetSyntax attribute)
          Writes an attribute in CharsetSyntax into the stream.
private  void write(javax.print.attribute.DateTimeSyntax attribute)
          Writes an attribute in DateTimeSyntax into the stream.
private  void write(javax.print.attribute.EnumSyntax attribute)
          Writes an attribute in EnumSyntax into the stream.
private  void write(javax.print.attribute.IntegerSyntax attribute)
          Writes an attribute in IntegerSyntax into the stream.
private  void write(gnu.javax.print.ipp.attribute.NaturalLanguageSyntax attribute)
          Writes an attribute in NaturalLanguageSyntax into the stream.
private  void write(gnu.javax.print.ipp.attribute.RequestedAttributes attribute)
          Writes an attribute in RequestedAttributes into the stream.
private  void write(javax.print.attribute.ResolutionSyntax attribute)
          Writes an attribute in ResolutionSyntax into the stream.
private  void write(javax.print.attribute.SetOfIntegerSyntax attribute)
          Writes an attribute in SetOfIntegerSyntax into the stream.
private  void write(javax.print.attribute.TextSyntax attribute)
          Writes an attribute in TextSyntax into the stream.
private  void write(javax.print.attribute.URISyntax attribute)
          Writes an attribute in URISyntax into the stream.
 void writeAttributes(javax.print.attribute.AttributeSet attributes)
          Writes the given attribute groups of the given map instance (key=group, values=set of attributes) into the supplied data output stream.
 void writeOperationAttributes(javax.print.attribute.AttributeSet attributes)
          Writes the given operation attribute group of the given map instance (key=group, values=set of attributes) into the supplied data output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

private java.io.DataOutputStream out
Constructor Detail

IppRequest.RequestWriter

IppRequest.RequestWriter(java.io.DataOutputStream stream)
Creates a RequestWriter.

Method Detail

write

private void write(javax.print.attribute.IntegerSyntax attribute)
            throws java.io.IOException
Writes an attribute in IntegerSyntax into the stream.


write

private void write(javax.print.attribute.EnumSyntax attribute)
            throws java.io.IOException
Writes an attribute in EnumSyntax into the stream.


write

private void write(javax.print.attribute.SetOfIntegerSyntax attribute)
            throws java.io.IOException
Writes an attribute in SetOfIntegerSyntax into the stream.


write

private void write(javax.print.attribute.ResolutionSyntax attribute)
            throws java.io.IOException
Writes an attribute in ResolutionSyntax into the stream.


write

private void write(javax.print.attribute.DateTimeSyntax attribute)
            throws java.io.IOException
Writes an attribute in DateTimeSyntax into the stream.

The syntax value is defined as 11 octets follwing the DateAndTime format of RFC 1903. (see IppResponse)


write

private void write(javax.print.attribute.TextSyntax attribute)
            throws java.io.IOException
Writes an attribute in TextSyntax into the stream.

By default attributes are qritten as TEXT_WITHOUT_LANGUAGE value-tag. As some attributes in the JPS are TextSyntax attributes but actually of NAME value-tag in IPP this method checks for these attributes and writes them as NAME_WITHOUT_LANGUAGE value-tag into the stream.


write

private void write(javax.print.attribute.URISyntax attribute)
            throws java.io.IOException
Writes an attribute in URISyntax into the stream.


write

private void write(gnu.javax.print.ipp.attribute.CharsetSyntax attribute)
            throws java.io.IOException
Writes an attribute in CharsetSyntax into the stream.


write

private void write(gnu.javax.print.ipp.attribute.NaturalLanguageSyntax attribute)
            throws java.io.IOException
Writes an attribute in NaturalLanguageSyntax into the stream.


write

private void write(gnu.javax.print.ipp.attribute.RequestedAttributes attribute)
            throws java.io.IOException
Writes an attribute in RequestedAttributes into the stream.


writeOperationAttributes

public void writeOperationAttributes(javax.print.attribute.AttributeSet attributes)
                              throws java.io.IOException,
                                     IppException
Writes the given operation attribute group of the given map instance (key=group, values=set of attributes) into the supplied data output stream.


writeAttributes

public void writeAttributes(javax.print.attribute.AttributeSet attributes)
                     throws java.io.IOException,
                            IppException
Writes the given attribute groups of the given map instance (key=group, values=set of attributes) into the supplied data output stream.