ariba.ui.aribaweb.util
Class AWMimeReader
java.lang.Object
ariba.ui.aribaweb.util.AWBaseObject
ariba.ui.aribaweb.util.AWMimeReader
- All Implemented Interfaces:
- AWObject
public final class AWMimeReader
- extends AWBaseObject
| 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 |
AWMimeReader
public AWMimeReader(InputStream inputStream,
int contentLength,
String contentType)
throws IOException
- Throws:
IOException
contentLength
public int contentLength()
currentPosition
public int currentPosition()
mimeArgumentValue
public static String mimeArgumentValue(String value,
String name)
- Find the MIME argument value for the name provided.
- Parameters:
value - the complete MIME value from the headername - 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 IOException
- Throws:
IOException
readToBoundary
public byte[] readToBoundary(int maxBytes)
throws IOException
- Throws:
IOException
nextHeaders
public Parameters nextHeaders()
throws IOException
- Throws:
IOException
nextChunk
public AWFileData nextChunk(String fileName,
String mimeType)
throws IOException
- Throws:
IOException
nextChunk
public AWFileData nextChunk(String fileName,
String mimeType,
int maxBytes,
boolean encrypted)
throws IOException
- Throws:
IOException
nextChunk
public byte[] nextChunk()
throws IOException
- Throws:
IOException
nextChunk
public byte[] nextChunk(int maxBytes)
throws IOException
- Throws:
IOException
setFileUploadDirectory
public static void setFileUploadDirectory(String directory)
fileUploadDirectory
public static String fileUploadDirectory()
AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.