info.informatica.html
Class NameTagFinder

java.lang.Object
  extended by info.informatica.html.TagFinder
      extended by info.informatica.html.NameTagFinder

public class NameTagFinder
extends TagFinder

Finds tags by type.

Version:
1.01
Author:
amengual at informatica dot info

Method Summary
 info.informatica.doc.FragmentPosition findEndTag(int inipos)
          Finds the next End Tag of the specified type in the document.
 info.informatica.doc.FragmentPosition findNextTag(int inipos)
          Finds the next Tag of the specified type in the document.
 CharData getNextBlock(int inipos)
          Gets the block of character data formed by the next Tag found by this class, and the enclosed character data.
 HTMLTag getNextTag(int inipos)
          Get the next Tag of the requested name in the document, starting to search at a given place.
 HTMLTag getNextTagBlock(int inipos)
          Gets the tag block formed by the next Tag found by this class, and the enclosed character data.
 CharData getNextTagData(int inipos)
          Gets the character data enclosed by the next Tag found by this class.
 
Methods inherited from class info.informatica.html.TagFinder
findEndTag, findNextTag, getTag, getTagAt, getTagBlock, getTagData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findNextTag

public info.informatica.doc.FragmentPosition findNextTag(int inipos)
Finds the next Tag of the specified type in the document.

This method does not parse the tag, so it is faster and in many circumstances will be the preferred method to locate tags by type (name).

Parameters:
inipos - position to start search.
Returns:
position of the tag, or null if none found.

findEndTag

public info.informatica.doc.FragmentPosition findEndTag(int inipos)
Finds the next End Tag of the specified type in the document.

Parameters:
inipos - position to start search.
Returns:
position of the closing tag, or null if none found.

getNextTag

public HTMLTag getNextTag(int inipos)
Get the next Tag of the requested name in the document, starting to search at a given place.

Overrides:
getNextTag in class TagFinder
Parameters:
inipos - position to start search.
Returns:
the tag, or null if none found.

getNextTagData

public CharData getNextTagData(int inipos)
Gets the character data enclosed by the next Tag found by this class.

Overrides:
getNextTagData in class TagFinder
Parameters:
inipos - position to start search.
Returns:
the character data enclosed, or null if no tag was found.

getNextTagBlock

public HTMLTag getNextTagBlock(int inipos)
Gets the tag block formed by the next Tag found by this class, and the enclosed character data.

Overrides:
getNextTagBlock in class TagFinder
Parameters:
inipos - position to start search.
Returns:
the block of character data, or null if no tag was found.

getNextBlock

public CharData getNextBlock(int inipos)
Gets the block of character data formed by the next Tag found by this class, and the enclosed character data.

Overrides:
getNextBlock in class TagFinder
Parameters:
inipos - position to start search.
Returns:
the block of character data, or null if no tag was found.