ariba.ui.aribaweb.util
Class AWMimeReader

java.lang.Object
  extended by ariba.ui.aribaweb.util.AWBaseObject
      extended by ariba.ui.aribaweb.util.AWMimeReader
All Implemented Interfaces:
AWObject

public final class AWMimeReader
extends AWBaseObject


Field Summary
 
Fields inherited from class ariba.ui.aribaweb.util.AWBaseObject
AribaHashtableClass, AribaVectorClass, ClassClass, EmptyHashtable, EmptyMap, EmptyVector, False, IntegerClass, JavaHashtableClass, JavaMapClass, JavaVectorClass, LogHandling, NullObject, ObjectClass, StringClass, True, UndefinedObject, UndefinedString, UninitializedRealNumber
 
Constructor Summary
AWMimeReader(java.io.InputStream inputStream, int contentLength, java.lang.String contentType)
           
 
Method Summary
 int contentLength()
           
 int currentPosition()
           
static java.lang.String fileUploadDirectory()
           
static int maxBytesPerChunk()
           
 boolean maxChunkSizeExceeded()
           
static java.lang.String mimeArgumentValue(java.lang.String value, java.lang.String name)
          Find the MIME argument value for the name provided.
 byte[] nextChunk()
           
 byte[] nextChunk(int maxBytes)
           
 AWFileData nextChunk(java.lang.String fileName, java.lang.String mimeType)
           
 AWFileData nextChunk(java.lang.String fileName, java.lang.String mimeType, int maxBytes, boolean encrypted)
           
 Parameters nextHeaders()
           
 byte[] readToBoundary()
           
 byte[] readToBoundary(int maxBytes)
           
static void setFileUploadDirectory(java.lang.String directory)
           
static void setMaxBytesPerChunk(int value)
           
 
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject
debugString, ensureFieldValuesClear, getFieldValue, init, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWMimeReader

public AWMimeReader(java.io.InputStream inputStream,
                    int contentLength,
                    java.lang.String contentType)
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

contentLength

public int contentLength()

currentPosition

public int currentPosition()

mimeArgumentValue

public static java.lang.String mimeArgumentValue(java.lang.String value,
                                                 java.lang.String name)
Find the MIME argument value for the name provided.

Parameters:
value - the complete MIME value from the header
name - the name of the argument that we're looking for
Returns:
the value or null if there is no such argument

maxBytesPerChunk

public static int maxBytesPerChunk()

setMaxBytesPerChunk

public static void setMaxBytesPerChunk(int value)

maxChunkSizeExceeded

public boolean maxChunkSizeExceeded()

readToBoundary

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

readToBoundary

public byte[] readToBoundary(int maxBytes)
                      throws java.io.IOException
Throws:
java.io.IOException

nextHeaders

public Parameters nextHeaders()
                       throws java.io.IOException
Throws:
java.io.IOException

nextChunk

public AWFileData nextChunk(java.lang.String fileName,
                            java.lang.String mimeType)
                     throws java.io.IOException
Throws:
java.io.IOException

nextChunk

public AWFileData nextChunk(java.lang.String fileName,
                            java.lang.String mimeType,
                            int maxBytes,
                            boolean encrypted)
                     throws java.io.IOException
Throws:
java.io.IOException

nextChunk

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

nextChunk

public byte[] nextChunk(int maxBytes)
                 throws java.io.IOException
Throws:
java.io.IOException

setFileUploadDirectory

public static void setFileUploadDirectory(java.lang.String directory)

fileUploadDirectory

public static java.lang.String fileUploadDirectory()


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.