org.netbeans.modules.editor.settings.storage/1 1.19

org.netbeans.modules.editor.settings.storage.spi
Class StorageReader<K,V>

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.netbeans.modules.editor.settings.storage.spi.StorageReader<K,V>
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, LexicalHandler

public abstract class StorageReader<K,V>
extends DefaultHandler
implements LexicalHandler


Constructor Summary
protected StorageReader(FileObject processedFile, String mimePath)
           
 
Method Summary
 void comment(char[] ch, int start, int length)
           
 void endCDATA()
           
 void endDTD()
           
 void endEntity(String name)
           
 void error(SAXParseException e)
           
 void fatalError(SAXParseException e)
           
abstract  Map<K,V> getAdded()
           
protected  String getMimePath()
           
protected  FileObject getProcessedFile()
           
abstract  Set<K> getRemoved()
           
protected  boolean isDefaultProfile()
           
protected  boolean isModuleFile()
           
 InputSource resolveEntity(String pubid, String sysid)
           
 void startCDATA()
           
 void startDTD(String name, String publicId, String systemId)
           
 void startEntity(String name)
           
 void warning(SAXParseException e)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageReader

protected StorageReader(FileObject processedFile,
                        String mimePath)
Since:
1.17
Method Detail

warning

public void warning(SAXParseException e)
             throws SAXException
Specified by:
warning in interface ErrorHandler
Overrides:
warning in class DefaultHandler
Throws:
SAXException

error

public void error(SAXParseException e)
           throws SAXException
Specified by:
error in interface ErrorHandler
Overrides:
error in class DefaultHandler
Throws:
SAXException

fatalError

public void fatalError(SAXParseException e)
                throws SAXException
Specified by:
fatalError in interface ErrorHandler
Overrides:
fatalError in class DefaultHandler
Throws:
SAXException

resolveEntity

public InputSource resolveEntity(String pubid,
                                 String sysid)
Specified by:
resolveEntity in interface EntityResolver
Overrides:
resolveEntity in class DefaultHandler

startCDATA

public void startCDATA()
                throws SAXException
Specified by:
startCDATA in interface LexicalHandler
Throws:
SAXException

endCDATA

public void endCDATA()
              throws SAXException
Specified by:
endCDATA in interface LexicalHandler
Throws:
SAXException

comment

public void comment(char[] ch,
                    int start,
                    int length)
             throws SAXException
Specified by:
comment in interface LexicalHandler
Throws:
SAXException

endDTD

public void endDTD()
            throws SAXException
Specified by:
endDTD in interface LexicalHandler
Throws:
SAXException

endEntity

public void endEntity(String name)
               throws SAXException
Specified by:
endEntity in interface LexicalHandler
Throws:
SAXException

startDTD

public void startDTD(String name,
                     String publicId,
                     String systemId)
              throws SAXException
Specified by:
startDTD in interface LexicalHandler
Throws:
SAXException

startEntity

public void startEntity(String name)
                 throws SAXException
Specified by:
startEntity in interface LexicalHandler
Throws:
SAXException

getAdded

public abstract Map<K,V> getAdded()

getRemoved

public abstract Set<K> getRemoved()

getProcessedFile

protected final FileObject getProcessedFile()

isModuleFile

protected final boolean isModuleFile()

isDefaultProfile

protected final boolean isDefaultProfile()

getMimePath

protected final String getMimePath()
Since:
1.17

org.netbeans.modules.editor.settings.storage/1 1.19

Built on December 3 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.