things.thinger.service.httptool
Class ServeFile

java.lang.Object
  extended by things.thinger.service.httptool.ServeFile

public class ServeFile
extends java.lang.Object

A serve file.

Version:
1.0

Version History

EPG - Initial - 21 NOV 07
 
Author:
Erich P. Gatejen

Field Summary
 long length
           
 java.io.InputStream source
           
 java.lang.String type
           
 
Constructor Summary
ServeFile(java.io.InputStream source, java.lang.String type, long length)
          Constructor.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

public java.io.InputStream source

type

public java.lang.String type

length

public long length
Constructor Detail

ServeFile

public ServeFile(java.io.InputStream source,
                 java.lang.String type,
                 long length)
Constructor.

Parameters:
source - a stream to the data. You should close after use.
type - the MIME type for the file
length - the length in bytes.


Things.