Package org.apache.aries.util

Examples of org.apache.aries.util.IORuntimeException


  public static ICloseableDirectory getFSRoot(InputStream is) {
    File tempFile = null;
    try {
      tempFile = File.createTempFile("inputStreamExtract", ".zip");
    } catch (IOException e1) {
      throw new IORuntimeException("IOException in IDirectory.getFSRoot", e1);
    }
    FileOutputStream fos = null;
    try {
      fos = new FileOutputStream(tempFile);
      IOUtils.copy(is, fos);
View Full Code Here


        return null;
      }
    }
    catch (IOException e) {
      throw new IORuntimeException("IOException in BundleManifest()", e);
    }
    finally {
      IOUtils.close(jarIs);
    }
  }
View Full Code Here

      } else {
        is = f.open();
        return fromBundle(is);
      }
    } catch (IOException e) {
      throw new IORuntimeException("IOException in BundleManifest.fromBundle(IFile)", e);
    }
    finally {
      IOUtils.close(is);
    }
  }
View Full Code Here

      if (manifestFile.isFile())
        try {
          return new BundleManifest(new FileInputStream(manifestFile));
        }
        catch (IOException e) {
          throw new IORuntimeException("IOException in BundleManifest.fromBundle(File)", e);
        }
      else
        return null;
    }
    else  if (f.isFile()) {
      try {
        return fromBundle(new FileInputStream(f));
      }
      catch (IOException e) {
        throw new IORuntimeException("IOException in BundleManifest.fromBundle(File)", e);
      }
    }
    else {
      throw new IllegalArgumentException(MessageUtil.getMessage("UTIL0016E", f.getAbsolutePath()));
    }
View Full Code Here

        return null;
      }
    }
    catch (IOException e) {
      throw new IORuntimeException("IOException in BundleManifest()", e);
    }
    finally {
      IOUtils.close(jarIs);
    }
  }
View Full Code Here

      } else {
        is = f.open();
        return fromBundle(is);
      }
    } catch (IOException e) {
      throw new IORuntimeException("IOException in BundleManifest.fromBundle(IFile)", e);
    }
    finally {
      IOUtils.close(is);
    }
  }
View Full Code Here

      if (manifestFile.isFile())
        try {
          return new BundleManifest(new FileInputStream(manifestFile));
        }
        catch (IOException e) {
          throw new IORuntimeException("IOException in BundleManifest.fromBundle(File)", e);
        }
      else
        return null;
    }
    else  if (f.isFile()) {
      try {
        return fromBundle(new FileInputStream(f));
      }
      catch (IOException e) {
        throw new IORuntimeException("IOException in BundleManifest.fromBundle(File)", e);
      }
    }
    else {
      throw new IllegalArgumentException(MessageUtil.getMessage("UTIL0016E", f.getAbsolutePath()));
    }
View Full Code Here

TOP

Related Classes of org.apache.aries.util.IORuntimeException

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.