apollo
Class HTTPFile

java.lang.Object
  |
  +--apollo.HTTPFile

public class HTTPFile
extends java.lang.Object

HTTPFile.java Created: Thu Aug 3 10:49:36 2000


Constructor Summary
HTTPFile(java.lang.String fileName, java.lang.String mimeType, byte[] fileData)
           
 
Method Summary
 byte[] getFileData()
          This byte array stores the acctual file data.
 java.lang.String getFileName()
           
 java.lang.String getMimeType()
           
 int getSize()
           
 java.lang.String toString()
          Returns the filename if somebody tries to convert this baby to a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTTPFile

public HTTPFile(java.lang.String fileName,
                java.lang.String mimeType,
                byte[] fileData)
Method Detail

getFileData

public byte[] getFileData()
This byte array stores the acctual file data. If you convert this to a string using: new String(byte[]) You will destroy 8-bit data in this byte array. Java uses a Character Encoding scheme when converting to Strings. Your data will be modified according to the Character Encoding scheme you use.

getMimeType

public java.lang.String getMimeType()

getFileName

public java.lang.String getFileName()

getSize

public int getSize()

toString

public java.lang.String toString()
Returns the filename if somebody tries to convert this baby to a string
Overrides:
toString in class java.lang.Object