Examples of openInputStream()


Examples of aQute.bnd.osgi.JarResource.openInputStream()

            displayErrors(context);
            return false;
        }

        JarResource jr = new JarResource(jar);
        InputStream is = new BufferedInputStream(jr.openInputStream());
        try {
            context.getProject().release(context.getReleaseRepository().getName(), jar.getName(), is);
        } finally {
            is.close();
        }
View Full Code Here

Examples of aQute.bnd.osgi.JarResource.openInputStream()

      displayErrors(context);
      return false;
    }

    JarResource jr = new JarResource(jar);
    InputStream is = new BufferedInputStream(jr.openInputStream());
    try {
        context.getProject().release(context.getReleaseRepository().getName(), jar.getName(), is);
    } finally {
        is.close();
    }
View Full Code Here

Examples of aQute.bnd.osgi.Resource.openInputStream()

                }

                Resource metaType = generator.getMetaTypeResource();
                if (metaType != null)
                {
                    addResource("OSGI-INF/metatype/metatype.xml", metaType.openInputStream());
                    jar.putResource("OSGI-INF/metatype/metatype.xml", metaType);
                }

                // Possibly set the Import-Service/Export-Service header
                if (m_buildImportExportService)
View Full Code Here

Examples of aQute.bnd.osgi.Resource.openInputStream()

            printed = true;
            out.println(path);

            Resource r = jar.getResource(path);
            if (r != null) {
                InputStreamReader ir = new InputStreamReader(r.openInputStream(), Constants.DEFAULT_CHARSET);
                OutputStreamWriter or = new OutputStreamWriter(out, Constants.DEFAULT_CHARSET);
                try {
                    IO.copy(ir, or);
                } finally {
                    or.flush();
View Full Code Here

Examples of aQute.bnd.osgi.Resource.openInputStream()

            printed = true;
            out.println(path);

            Resource r = jar.getResource(path);
            if (r != null) {
                InputStreamReader ir = new InputStreamReader(r.openInputStream(), Constants.DEFAULT_CHARSET);
                OutputStreamWriter or = new OutputStreamWriter(out, Constants.DEFAULT_CHARSET);
                try {
                    IO.copy(ir, or);
                } finally {
                    or.flush();
View Full Code Here

Examples of aQute.bnd.osgi.Resource.openInputStream()

            }
            resource = embed.getResource(path);
        }
        InputStream is = null;
        try {
            is = resource.openInputStream();
        } catch (Exception e) {
            throw new IOException("Cannot read " + path);
        }
        return Streams.readBytes(is);
    }
View Full Code Here

Examples of aQute.lib.osgi.Resource.openInputStream()

                }
            }

            if (match) {
                try {
                    InputStream in = resource.openInputStream();
                    Set<CharSequence> set = analyze(in);
                    in.close();
                    for (Iterator<CharSequence> r = set.iterator(); r.hasNext();) {
                        String pack = (String) r.next();
                        if (!QN.matcher(pack).matches())
View Full Code Here

Examples of com.caucho.server.admin.GitJarStreamSource.openInputStream()

  {
    for (String hash : commit.getCommitList()) {
      GitJarStreamSource gitSource = new GitJarStreamSource(hash, commit);
     
      if (! exists(hash)) {
        InputStream is = gitSource.openInputStream();
       
        try {
          writeRawGitFile(hash, is);
        } catch (IOException e) {
          throw new IOException(commit.findPath(hash) + ":" + hash + ": " + e.getMessage(), e);
View Full Code Here

Examples of com.caucho.vfs.TempOutputStream.openInputStream()

        }
      }

      out.close();

      InputStream is = os.openInputStream();

      try {
        InflaterInputStream gzIn = new InflaterInputStream(is);

        Object value = serializer.deserialize(gzIn);
View Full Code Here

Examples of com.caucho.vfs.TempOutputStream.openInputStream()

          InputStream is = os.openInputStreamNoFree();

          String sha1 = _deployClient.calculateFileDigest(is, length);

          _deployClient.sendFile(sha1, length, os.openInputStream());

          _deployClient.deploy(tag);

          _deployClient.addDeployFile(tag, name, sha1);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.