Package org.bs.mdi

Examples of org.bs.mdi.FileIOException


  dbf.setCoalescing(true);
  dbf.setIgnoringElementContentWhitespace(true);

  try { dbf.setSchema(StanXSDImpl.getSchema()); }
  catch(SAXException ex)
  { throw new FileIOException(FileIOException.ERR_UNKNOWN, nmfDocument); }

  try { return(dbf.newDocumentBuilder()); }
  catch(ParserConfigurationException ex)
  { throw new FileIOException(FileIOException.ERR_UNKNOWN, nmfDocument); }
    }
View Full Code Here


    public RootData load(String nmfDocument)
    throws FileIOException {
  org.w3c.dom.Document domDoc;
  try { domDoc = getXMLDocumentBuilder(nmfDocument).parse(nmfDocument); }
  catch(SAXException ex) {
      throw new FileIOException(
    FileIOException.ERR_UNSUPPORTEDFORMAT,
    nmfDocument
      );
  } catch(IOException ex)
  { throw new FileIOException(FileIOException.ERR_NOACCESS, nmfDocument); }

  return(new Data(null, domDoc.getDocumentElement()));
    }
View Full Code Here

      t.transform(
    new DOMSource(domDoc),
    new StreamResult(new File(nmfDocument))
      );
  } catch(javax.xml.transform.TransformerException ex) {
      throw new FileIOException(FileIOException.ERR_NOACCESS, nmfDocument);
  }
    }
View Full Code Here

  else if(ATTR_STATE_UNSEL.equals(attr))
      setFixedValue(false);
  else if(ATTR_STATE_SEL.equals(attr))
      setFixedValue(true);
  else
      throw new FileIOException(
    FileIOException.ERR_UNSUPPORTEDFORMAT,
    documentData.getDocument().getFilename()
      );

  id = deRoot.getAttribute(ATTR_ID);
View Full Code Here

    ) throws FileIOException {
  super(documentData, deRoot);

  mode = vXmlModes.indexOf(deRoot.getAttribute(ATTR_MODE));
  if(mode < 0)
      throw new FileIOException(
    FileIOException.ERR_UNSUPPORTEDFORMAT,
    documentData.getDocument().getFilename()
      );

  for(
View Full Code Here

    Double.parseDouble(deRoot.getAttribute(ATTR_STDDEV))
      :
    0.0
      );
  } catch(IllegalArgumentException ex) {
      throw new FileIOException(
    FileIOException.ERR_UNSUPPORTEDFORMAT,
    documentData.getDocument().getFilename()
      );
  }
    }
View Full Code Here

    atLeast = new Integer(deRoot.getAttribute(ATTR_AT_LEAST));

      if(deRoot.hasAttribute(ATTR_AT_MOST))
    atMost = new Integer(deRoot.getAttribute(ATTR_AT_MOST));
  } catch(IllegalArgumentException ex) {
      throw new FileIOException(
    FileIOException.ERR_UNSUPPORTEDFORMAT,
    documentData.getDocument().getFilename()
      );
  }
View Full Code Here

    atLeast = new Double(deRoot.getAttribute(ATTR_AT_LEAST));

      if(deRoot.hasAttribute(ATTR_AT_MOST))
    atMost = new Double(deRoot.getAttribute(ATTR_AT_MOST));
  } catch(IllegalArgumentException ex) {
      throw new FileIOException(
    FileIOException.ERR_UNSUPPORTEDFORMAT,
    documentData.getDocument().getFilename()
      );
  }
    }
View Full Code Here

TOP

Related Classes of org.bs.mdi.FileIOException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.