org.aspsimon.termcomp.infrastructure.utility
Class Resource

java.lang.Object
  extended by org.aspsimon.termcomp.infrastructure.utility.Resource

public abstract class Resource
extends java.lang.Object

Version:
$Revision: 104 $
Author:
Simon Bailey

Nested Class Summary
static class Resource.Disposition
           
 
Constructor Summary
Resource()
           
 
Method Summary
abstract  byte[] getContent()
           
 int getContentSize()
           
abstract  java.lang.Object getContentType()
           
 Resource.Disposition getDisposition()
           
 java.lang.String getFileName()
           
 void render()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

public Resource()
Method Detail

render

public void render()
            throws java.io.IOException
Throws:
java.io.IOException

getContentType

public abstract java.lang.Object getContentType()

getContent

public abstract byte[] getContent()
                           throws java.io.IOException
Throws:
java.io.IOException

getContentSize

public int getContentSize()
                   throws java.io.IOException
Throws:
java.io.IOException

getFileName

public java.lang.String getFileName()

getDisposition

public Resource.Disposition getDisposition()