Logo Search packages:      
Sourcecode: pcalendar version File versions  Download package

void net::sf::linuxorg::pcal::engine::Engine::loadFromFileProperties ( Document  doc ) throws SAXException [inline, private]

Load from file helper. Loads the properties associated with the file


Definition at line 731 of file Engine.java.

References parseLoadedFileProperties().

Referenced by loadFromFile().

            Properties fileProperties = null;
            NodeList nl;
            nl = doc.getElementsByTagName(FILE_PROPERTIES_TAG);
            if(nl.getLength()>0) {
                  if(nl.getLength()>1) {
                        // something wrong - too many properties sections
                        throw new SAXException(Messages.getString("Engine.0")); //$NON-NLS-1$
                  String text = nl.item(0).getTextContent();                  
                  fileProperties = new Properties();

                  // all non-ascii chars are translated automatically to the escape sequences
                  // it should be safe to use direct bytes transformation here
                  ByteArrayInputStream bai = new ByteArrayInputStream(text.getBytes());               
                  try {
                  } catch (IOException e) {
                        throw new SAXException(Messages.getString("Engine.0")); //$NON-NLS-1$

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index