Examples of openRead()


Examples of com.caucho.vfs.Path.openRead()

    Path path = mergePath.lookup("com/caucho/quercus/lib/pdf/font/" + name + ".afm");

    if (! path.canRead())
      throw new FileNotFoundException(L.l("Can't find font {0}", name));

    _is = path.openRead();

    try {
      return parseTop();
    } finally {
      _is.close();
View Full Code Here

Examples of com.caucho.vfs.Path.openRead()

        try {
          Path path = env.getPwd().lookup(value.toString());

          if (path.exists()) {
            in = path.openRead();

            StringBuilder sb = new StringBuilder();

            int ch;
            while ((ch = in.read()) >= 0) {
View Full Code Here

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

    tree.toData(treeOut);
   
    int treeLength = treeOut.getLength();
   
    InputStream is = treeOut.openRead();
   
    try {
      TempOutputStream os = new TempOutputStream();
      String type = "tree";
View Full Code Here

Examples of com.caucho.vfs.TempStream.openRead()

        TempStream ts = _xsltStream.getTempStream();

        Document doc = null;
       
        ReadStream is = ts.openRead();
        Path userPath = Vfs.lookup();
        if (req instanceof CauchoRequest)
          userPath.setUserPath(((CauchoRequest) req).getPageURI());
        else
          userPath.setUserPath(req.getRequestURI());
View Full Code Here

Examples of com.caucho.vfs.TempStream.openRead()

    } finally {
      os.close();
    }
    */

    return parseImageJpeg(ts.openRead());
   
  }

  private boolean parseImageJpeg(ReadStream is)
    throws IOException
View Full Code Here

Examples of com.caucho.vfs.TempStream.openRead()

      // XXX: issues with _jpegHead vs ts.openReadAndSaveBuffer()
      _jpegHead = ts.getHead();
      is.close();

      _is = new ReadStream();
      ts.openRead(_is);

      parseJPEG();

      return true;
  }
View Full Code Here

Examples of com.caucho.vfs.TempStream.openRead()

        TempStream ts = _xsltStream.getTempStream();

        Document doc = null;
       
        ReadStream is = ts.openRead();
        Path userPath = Vfs.lookup();
        if (req instanceof CauchoRequest)
          userPath.setUserPath(((CauchoRequest) req).getPageURI());
        else
          userPath.setUserPath(req.getRequestURI());
View Full Code Here

Examples of com.caucho.vfs.TempStream.openRead()

      // XXX: issues with _jpegHead vs ts.openReadAndSaveBuffer()
      _jpegHead = ts.getHead();
      _is.close();

      _is = new ReadStream();
      ts.openRead(_is);

      parseJPEG();

      return true;
    }
View Full Code Here

Examples of com.caucho.vfs.TempStreamApi.openRead()

      if (ts != null) {
        if (_os == null)
          openLog();

        try {
          ReadStream is = ts.openRead();

          try {
            is.writeToStream(_os);
          } finally {
            is.close();
View Full Code Here

Examples of com.netfever.common.datasource.api.IFile.openRead()

      file = this.datasource.getRoot().getFileItem(name + ".mime")

      if (file.exists()) {
        res = "";

        in = file.openRead();

        try {
          while ((nread = in.read(buf)) > 0) {
            res = res + new String(buf, 0, nread);
          }
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.