prupp
Class ImageSender
java.lang.Object
|
+--prupp.ImageSender
- public class ImageSender
- extends java.lang.Object
This class sends an image to the assigned outputstreams.
Method Summary |
long |
getLowqualitySize()
get the size of the converted image |
long |
getOrigSize()
get the originalsize of the image |
float |
getRatio()
get the ratio of compreesion for the image. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ImageSender
public ImageSender(java.io.DataOutputStream os,
java.io.DataInputStream webis,
HTTPHeader hd,
NCacheEntry ent)
- The standard constructor.
- Parameters:
os
- the standard stream to send to.cache
- the cachefile if any (null = no cache).url
- the URL were writing from
getOrigSize
public long getOrigSize()
- get the originalsize of the image
- Returns:
- the original filesize of the image.
getLowqualitySize
public long getLowqualitySize()
- get the size of the converted image
- Returns:
- the filesize of the converedimage.
getRatio
public float getRatio()
- get the ratio of compreesion for the image.
- Returns:
- lowqualitysize / origsize