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 |
Constructor Summary |
AWMimeReader(java.io.InputStream inputStream,
int contentLength,
java.lang.String contentType)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AWMimeReader
public AWMimeReader(java.io.InputStream inputStream,
int contentLength,
java.lang.String contentType)
throws java.io.IOException
- Throws:
java.io.IOException
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 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 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.