|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simpleframework.common.parse.Parser
org.simpleframework.http.parse.ContentDispositionParser
public class ContentDispositionParser
The ContentDispositionParser object is used to represent
a parser used to parse the Content-Disposition header. Its used when
there is a multipart form upload to the server and allows the
server to determine the individual part types.
| Field Summary |
|---|
| Fields inherited from class org.simpleframework.common.parse.Parser |
|---|
buf, count, off |
| Constructor Summary | |
|---|---|
ContentDispositionParser()
Constructor for the ContentDispositionParser object. |
|
ContentDispositionParser(String text)
Constructor for the ContentDispositionParser object. |
|
| Method Summary | |
|---|---|
protected void |
clear()
This is used to clear all previously collected tokens. |
String |
getFileName()
This method is used to acquire the file name of the part. |
String |
getName()
This method is used to acquire the name of the part. |
protected void |
init()
This will initialize the Parser when it is ready
to parse a new String. |
boolean |
isFile()
This method is used to determine the type of a part. |
protected void |
parse()
This is the method that should be implemented to read the buffer. |
| Methods inherited from class org.simpleframework.common.parse.Parser |
|---|
digit, ensureCapacity, parse, skip, space, toLower |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentDispositionParser()
ContentDispositionParser object.
This is used to create a parser that can parse a disposition
header which is typically sent as part of a multipart upload. It
can be used to determine the type of the upload.
public ContentDispositionParser(String text)
ContentDispositionParser object.
This is used to create a parser that can parse a disposition header
which is typically sent as part of a multipart upload. It can
be used to determine the type of the upload.
text - this is the header value that is to be parsed| Method Detail |
|---|
public String getFileName()
getFileName in interface ContentDispositionpublic String getName()
getName in interface ContentDispositionpublic boolean isFile()
isFile in interface ContentDispositionprotected void init()
Parser when it is ready
to parse a new String. This will reset the
parser to a ready state. This method is invoked by the parser
before the parse method is invoked, it is used to pack the
contents of the header and clear any previous tokens used.
init in class Parserprotected void clear()
protected void parse()
parse in class Parser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||