Package eu.planets_project.ifr.core.storage.common

Examples of eu.planets_project.ifr.core.storage.common.FileHandler


  @Deprecated
  public String read(URI pdURI) throws SOAPException {
    log.fine("DataManager::read(URI pdURI)");
    try{
      PDURI _parsedURI = new PDURI(pdURI);
      FileHandler _encoder = new FileHandler(jcrManager.readContent(_parsedURI.getDataRegistryPath()));
      log.fine("DataManager::read() getting XML document");
      return _encoder.getXmlDocument();
    } catch (ParserConfigurationException _exp) {
      String _message = "DataManager.read() Encoding exception for UTF8??";
      log.fine(_message+": "+_exp.getMessage());
      throw new SOAPException(_message, _exp);
    } catch (PathNotFoundException _exp) {
View Full Code Here


     */
  @Deprecated
  public void store(URI pdURI, String encodedFile) throws SOAPException {
    try {
      PDURI _parsedURI = new PDURI(pdURI);
      FileHandler _handler = new FileHandler(encodedFile);
      ByteArrayInputStream _byteStream = new ByteArrayInputStream(_handler.getDecodedBytes());
      jcrManager.addBinaryContent(_parsedURI.getDataRegistryPath(), _byteStream);
    } catch (LoginException _exp) {
      String _message = "DataManager.store() Repository login error.";
      log.fine(_message+": "+_exp.getMessage());
      throw new SOAPException(_message, _exp);
View Full Code Here

TOP

Related Classes of eu.planets_project.ifr.core.storage.common.FileHandler

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.