public class DataLimitField
extends java.lang.Object
Further information, see ISO/IEC 15444-9 section C.6
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
DataLimitField()
Constructor.
|
public int len
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.
public int quality
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.
public void reset()
public java.lang.String toString()
toString
in class java.lang.Object
public void list(java.io.PrintStream out)
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)