java.lang.Object
javax.xml.parsers.SAXParser
- See Also:
- Top Examples, Source Code,
ParserAdapter
, DefaultHandler
, HandlerBase
, SAXParserFactory.newSAXParser()
, Parser
, XMLReader
public abstract Parser getParser()
throws SAXException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public abstract Object getProperty(String name)
throws SAXNotRecognizedException,
SAXNotSupportedException
- See Also:
-
XMLReader
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Schema getSchema()
- See Also:
- UnsupportedOperationException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public abstract XMLReader getXMLReader()
throws SAXException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public abstract boolean isNamespaceAware()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public abstract boolean isValidating()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isXIncludeAware()
- See Also:
SAXParserFactory.setXIncludeAware(boolean)
, UnsupportedOperationException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void parse(File f,
HandlerBase hb)
throws SAXException,
IOException
- See Also:
DocumentHandler
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1111]Checks to make sure that the time string is formatted correctly (dd*:hh:mm)
By Anonymous on 2004/11/10 00:04:59 Rate
public boolean setTime ( String eTime )
//checks to make sure that the string is formatted correctly ( dd*:hh:mm )
{
int colonA= eTime.indexOf ( ':' ) ;
int colonB= eTime.indexOf ( ':', colonA + 1 ) ;
int x= eTime.length ( ) ;
int length= x - colonA;
char y= eTime.charAt ( colonA-1 ) ;
char oneA= eTime.charAt ( colonA+1 ) ;
char twoA= eTime.charAt ( colonA+2 ) ;
char oneB= eTime.charAt ( colonB+1 ) ;
char twoB= eTime.charAt ( colonB+2 ) ;
while ( Character.isDigit ( y ) )
{
y--;
}
if ( eTime.charAt ( colonA+3 ) != ':' )
{
return false;
}
if ( length!=6 )
{
return false;
}
if ( Character.isDigit ( oneA ) && Character.isDigit ( twoA ) )
{
String astring1 = new Character ( oneA ) .toString ( ) ;
String astring2 = new Character ( twoA ) .toString ( ) ;
String astogether = astring1 + astring2;
int colonsA= Integer.parseInt ( astogether ) ;
if ( colonsA < =24 ) ;
{
return false;
}
}
if ( Character.isDigit ( oneB ) && Character.isDigit ( twoB ) )
{
String bstring1 = new Character ( oneB ) .toString ( ) ;
String bstring2 = new Character ( twoB ) .toString ( ) ;
String bstogether = bstring1 + bstring2;
int colonsB= Integer.parseInt ( bstogether ) ;
if ( colonsB < =60 ) ;
{
return false;
}
}
else
{
return true;
}
}
public void parse(File f,
DefaultHandler dh)
throws SAXException,
IOException
- See Also:
DocumentHandler
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void parse(InputStream is,
HandlerBase hb)
throws SAXException,
IOException
- See Also:
DocumentHandler
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[606]Parse a XML string
By Anonymous on 2004/04/15 04:50:01 Rate
StringReader reader = new StringReader ( strXML ) ;
InputSource isource = new InputSource ( reader ) ;
parser.parse ( isource ) ;
public void parse(InputStream is,
HandlerBase hb,
String systemId)
throws SAXException,
IOException
- See Also:
version of this method instead.
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void parse(InputStream is,
DefaultHandler dh)
throws SAXException,
IOException
- See Also:
DocumentHandler
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void parse(InputStream is,
DefaultHandler dh,
String systemId)
throws SAXException,
IOException
- See Also:
version of this method instead.
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void parse(String uri,
HandlerBase hb)
throws SAXException,
IOException
- See Also:
DocumentHandler
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void parse(String uri,
DefaultHandler dh)
throws SAXException,
IOException
- See Also:
DocumentHandler
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void parse(InputSource is,
HandlerBase hb)
throws SAXException,
IOException
- See Also:
DocumentHandler
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void parse(InputSource is,
DefaultHandler dh)
throws SAXException,
IOException
- See Also:
DocumentHandler
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void reset()
- See Also:
Object.equals(Object obj)
, Schema
, SAXParserFactory.newSAXParser()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected SAXParser()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public abstract void setProperty(String name,
Object value)
throws SAXNotRecognizedException,
SAXNotSupportedException
- See Also:
-
XMLReader
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples