uk.co.weft.maybeupload
Class UploadedBytes

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.ByteArrayInputStream
          extended byuk.co.weft.maybeupload.UploadedBytes

public class UploadedBytes
extends java.io.ByteArrayInputStream

An enhancement to ByteArrayInputStream that supports several additional fields concerning uploaded files.

Version:
$Revision: 1.1 $ This revision: $Author: simon $
  $Log: UploadedBytes.java,v $
  Revision 1.1  2002/10/08 09:22:48  simon
  A number of minor enhancements and some bug fixes proposed by Shawn Grunberger


  
Author:
Shawn Grunberger

Field Summary
protected  java.lang.String clientPathname
           
protected  java.lang.String contentType
           
 
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
 
Constructor Summary
protected UploadedBytes(byte[] buf)
           
 
Method Summary
 java.lang.String getClientPathname()
          Returns the client (remote) pathname for this file.
 java.lang.String getContentType()
          Returns the content type (MIME type) of the uploaded file.
protected  void setClientPathname(java.lang.String pathname)
          Sets the client (remote) pathname for this file.
protected  void setContentType(java.lang.String contentType)
          Sets the content type (MIME type) of the uploaded file.
 
Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.io.InputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientPathname

protected java.lang.String clientPathname

contentType

protected java.lang.String contentType
Constructor Detail

UploadedBytes

protected UploadedBytes(byte[] buf)
Method Detail

getClientPathname

public java.lang.String getClientPathname()
Returns the client (remote) pathname for this file. This is the full path as reported by the browser during the file upload.


setClientPathname

protected void setClientPathname(java.lang.String pathname)
Sets the client (remote) pathname for this file. This is the full path as reported by the browser during the file upload.


getContentType

public java.lang.String getContentType()
Returns the content type (MIME type) of the uploaded file. This was reported by the browser during the file upload. Returns null if no content type was specified.


setContentType

protected void setContentType(java.lang.String contentType)
Sets the content type (MIME type) of the uploaded file. This was reported by the browser during the file upload.