CADI.Common.Network.JPIP
Class DataLimitField

java.lang.Object
  extended by CADI.Common.Network.JPIP.DataLimitField

public class DataLimitField
extends java.lang.Object

This class is used to save the data limit fields.

Further information, see ISO/IEC 15444-9 section C.6

Version:
1.0 2007/10/26
Author:
Group on Interactive Coding of Images (GICI)

Field Summary
 int len
          len = "len" "=" UINT This field specifies a restriction on the amount of data the client wants the server to send in response to this request.
 int quality
          quality = "quality" "=" (1*2DIGIT / "100") ; 0 to 100 This field may be used to limit data transmission to a quality level (between 0 for lowest quality and 100 for highest quality) associated with the image.
 
Constructor Summary
DataLimitField()
          Constructor.
 
Method Summary
 void list(java.io.PrintStream out)
          Prints this Data limit fields out to the specified output stream.
 void reset()
          Sets the attributes to its initial values.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

len

public int len
len = "len" "=" UINT

This field specifies a restriction on the amount of data the client wants the server to send in response to this request. The unit shall be bytes. If not present, the server should send image data to the client until such point as all of the relevant data has been sent, a quality limit is reached (see C.6.2 of the ISO/IEC 15444-9:2005), or the response is interrupted by the arrival of a new request that does not include a Wait request field with a value of "yes" (see C.7.2 of the ISO/IEC 15444-9:2005). The client should use len=0 if it requires response headers and no response data.


quality

public int quality
quality = "quality" "=" (1*2DIGIT / "100") ; 0 to 100

This field may be used to limit data transmission to a quality level (between 0 for lowest quality and 100 for highest quality) associated with the image. Quality limits are difficult to formulate in a reliable manner, and the server may ignore this request by responding with a value "?1" (see D.2.16). Nevertheless, it is useful to allow the client to provide some indication of the maximum image quality that might be of interest. The quality factor may attempt to approximate the ad hoc Quality commonly used to control JPEG compression. The client should expect that the returned data size is monotonically non-decreasing with increasing quality, i.e., increasing the quality value generally corresponds to increasing the returned data size.

Constructor Detail

DataLimitField

public DataLimitField()
Constructor.

Method Detail

reset

public void reset()
Sets the attributes to its initial values.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

list

public void list(java.io.PrintStream out)
Prints this Data limit fields out to the specified output stream. This method is useful for debugging.

Parameters:
out - an output stream.


CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Group on Interactive Coding of Images (GICI) (contact)