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

Quick Search    Search Deep

com.lutris.appserver.server.httpPresentation
Class CachedFilePresentation  view CachedFilePresentation download CachedFilePresentation.java

java.lang.Object
  extended bycom.lutris.appserver.server.httpPresentation.CachedFilePresentation
All Implemented Interfaces:
HttpPresentation

class CachedFilePresentation
extends java.lang.Object
implements HttpPresentation

Presentation for file data that is cached in memory.


Field Summary
private  int contentLen
           
private  java.io.ByteArrayOutputStream fileData
           
private  java.lang.String mimeType
           
private static int READ_BUFFER_SIZE
           
 
Constructor Summary
protected CachedFilePresentation(java.lang.ClassLoader classLoader, java.lang.String urlPath, java.lang.String fileMimeType)
          Construct a new static file presentation, given an input stream.
 
Method Summary
 void run(HttpPresentationComms comms)
          Entry point for static file presenation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mimeType

private java.lang.String mimeType

contentLen

private int contentLen

fileData

private java.io.ByteArrayOutputStream fileData

READ_BUFFER_SIZE

private static final int READ_BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

CachedFilePresentation

protected CachedFilePresentation(java.lang.ClassLoader classLoader,
                                 java.lang.String urlPath,
                                 java.lang.String fileMimeType)
                          throws FilePresentationException
Construct a new static file presentation, given an input stream.

Method Detail

run

public void run(HttpPresentationComms comms)
         throws FilePresentationException
Entry point for static file presenation.

Specified by:
run in interface HttpPresentation