|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
tabs.hair.HairStyleXMLHandler
public class HairStyleXMLHandler
Instances of this class can be used to parse a XML hair style file. The XML file reading can be optimized for reading only some of the file's content.
FOR_THUMBNAIL_READING,
FOR_CONTENT_READING,
FOR_HIGHLIGHTS_READING,
FOR_SHADOW_READING| Field Summary | |
|---|---|
static int |
FOR_CONTENT_READING
The XML file reading is optimized for only Content reading |
static int |
FOR_HIGHLIGHTS_READING
The XML file reading is optimized for only Highlights reading |
static int |
FOR_SHADOW_READING
The XML file reading is optimized for only Shadow reading |
static int |
FOR_THUMBNAIL_READING
The XML file reading is optimized for only Thumbnail reading |
| Constructor Summary | |
|---|---|
HairStyleXMLHandler()
Creates a new instance of HairStyleXMLHandler that can be
used for reading the complete XML file |
|
HairStyleXMLHandler(int readingMode)
Creates a new instance of HairStyleXMLHandler
that is optimized for reading from the XML file only
the given readingMode value. |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
|
java.lang.String |
getHairOwner_gender()
The hair owner's gender |
java.lang.String |
getHairOwner_name()
The hair owner's name |
java.lang.String |
getHairStyle_title()
The hair title |
java.lang.String |
getHairStyle_type()
The hair owner's gender |
java.lang.String |
getStrContent()
The hair image in Base64 |
java.lang.String |
getStrHighlights()
The hair highlights in Base64 |
java.lang.String |
getStrShadow()
The hair shadow in Base64 |
java.lang.String |
getStrThumbnail()
The hair thumbnail image in Base64 |
void |
initReadingVars()
Reset this instance's variables so that a new parsing can be made |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FOR_THUMBNAIL_READING
public static final int FOR_CONTENT_READING
public static final int FOR_HIGHLIGHTS_READING
public static final int FOR_SHADOW_READING
| Constructor Detail |
|---|
public HairStyleXMLHandler()
HairStyleXMLHandler that can be
used for reading the complete XML file
public HairStyleXMLHandler(int readingMode)
HairStyleXMLHandler
that is optimized for reading from the XML file only
the given readingMode value.
The readingMode value is one of the constants defined in
class which is
applicable to instances of this class. The class description
lists the constants that are applicable to the class.
HairStyleXMLHandler
readingMode - the type of reading to be done from the XML file| Method Detail |
|---|
public void initReadingVars()
public java.lang.String getStrThumbnail()
Base64
Base64public java.lang.String getStrContent()
Base64
Base64public java.lang.String getStrHighlights()
Base64
Base64public java.lang.String getStrShadow()
Base64
Base64public java.lang.String getHairOwner_gender()
public java.lang.String getHairOwner_name()
public java.lang.String getHairStyle_title()
public java.lang.String getHairStyle_type()
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||