Java Reference
In-Depth Information
throws IOException
{
int ch;
while ((ch = parse.read()) != -1)
{
if (ch == 0)
{
if (parse.getTag().getName().equalsIgnoreCase(tag))
{
count--;
if (count <= 0)
return true;
}
}
}
return false;
}
/**
* This method is called once for each table row located, it
* contains a list of all columns in that row. The method
* provided simply prints the columns to the console.
* @param list Columns that were found on this row.
*/
private void processTableRow(List<String> list)
{
StringBuilder result = new StringBuilder();
for (String item : list)
{
if (result.length() > 0)
result.append(",");
result.append('\"');
result.append(item);
result.append('\"');
}
System.out.println(result.toString());
}
Search WWH ::




Custom Search