public class TvReader
extends java.lang.Object
Used for server side implementation.
This class mimics the BufferedReader class, but parses
the data and returns it as a tag-value list.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
DEP_LIST
Class dependencies
|
static java.lang.String |
VERSION
Class version
|
| Constructor and Description |
|---|
TvReader(java.io.BufferedReader reader)
Create a TvReader for MT_APP_URLENC.
|
TvReader(java.io.BufferedReader reader,
int mimeTypeId)
Create a TvReader for the specified MIME Type.
|
public static final java.lang.String VERSION
public static final java.lang.String[] DEP_LIST
public TvReader(java.io.BufferedReader reader)
reader - A BufferedReader on the data sourcepublic TvReader(java.io.BufferedReader reader,
int mimeTypeId)
reader - A BufferedReader on the data sourcemimeTypeId - MIME type of the data source.public void close()
throws java.io.IOException
java.io.IOException - If an I/O error occurspublic boolean ready()
throws java.io.IOException
java.io.IOException - If an I/O error occurspublic TvList readLine() throws java.io.IOException
java.io.IOException - If an I/O error occurs