|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lobobrowser.html.FormInput
public class FormInput
The FormInput
class contains the state
of an HTML form input item.
Field Summary | |
---|---|
static FormInput[] |
EMPTY_ARRAY
|
Constructor Summary | |
---|---|
FormInput(java.lang.String name,
java.io.File value)
Constructs a FormInput
with a file value. |
|
FormInput(java.lang.String name,
java.lang.String value)
Constructs a FormInput
with a text value. |
Method Summary | |
---|---|
java.lang.String |
getCharset()
Deprecated. The method is implemented only to provide some backward compatibility. |
java.io.File |
getFileValue()
Gets the file value of the form input. |
java.io.InputStream |
getInputStream()
Deprecated. Call either getTextValue() or getFileValue() instead. |
java.lang.String |
getName()
Gets the name of the input. |
java.lang.String |
getTextValue()
Gets the text value of the form input. |
boolean |
isFile()
Returns true if the form input holds a file value. |
boolean |
isText()
Returns true if the form input holds a text value. |
java.lang.String |
toString()
Shows a string representation of the FormInput
that may be useful in debugging. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final FormInput[] EMPTY_ARRAY
Constructor Detail |
---|
public FormInput(java.lang.String name, java.lang.String value)
FormInput
with a text value.
name
- The name of the input.value
- The value of the input.public FormInput(java.lang.String name, java.io.File value)
FormInput
with a file value.
name
- The name of the input.value
- The value of the input.Method Detail |
---|
public java.lang.String getName()
public boolean isText()
public boolean isFile()
public java.lang.String getTextValue()
isText()
public java.io.File getFileValue()
isFile()
public java.lang.String getCharset()
public java.io.InputStream getInputStream() throws java.io.IOException
getTextValue()
or getFileValue()
instead.
java.io.IOException
public java.lang.String toString()
FormInput
that may be useful in debugging.
toString
in class java.lang.Object
getTextValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |