Examples of writeToStream()


Examples of appeng.api.parts.IPart.writeToStream()

        is = p.getItemStack( PartItemStack.Network );

        data.writeShort( Item.getIdFromItem( is.getItem() ) );
        data.writeShort( is.getItemDamage() );

        p.writeToStream( data );
      }
    }

    getFacadeContainer().writeToStream( data );
  }
View Full Code Here

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

          out = zip;
        }

        if (out != null) {
          try {
            path.writeToStream(out);
          } finally {
            try {
              out.close();
            } catch (Exception e) {
              // can't log in log rotation routines
View Full Code Here

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

          path.renameTo(savedPath);
        }

        if (out != null) {
          try {
            path.writeToStream(out);
          } finally {
            try {
              out.close();
            } catch (Exception e) {
              // can't log in log rotation routines
View Full Code Here

Examples of com.caucho.vfs.ReadStream.writeToStream()

    OutputStream os = res.getOutputStream();
    InputStream is = _path.openRead(pathInfo, req, app);
    ReadStream rs = Vfs.openRead(is);
    try {
      rs.writeToStream(os);
    } finally {
      rs.close();
    }
  }
View Full Code Here

Examples of com.caucho.vfs.ReadStream.writeToStream()

      try {
        is = cache.getPath().openRead();
        is.skip(first);

        os = res.getOutputStream();
        is.writeToStream(os, (int) (last - first + 1));
      } finally {
        if (is != null)
          is.close();
      }
View Full Code Here

Examples of com.caucho.vfs.ReadStream.writeToStream()

      try {
        hasStatus = parseHeaders(req, res, rs);

        OutputStream out = res.getOutputStream();

        rs.writeToStream(out);
      } finally {
        try {
          rs.close();
        } catch (Throwable e) {
          log.log(Level.FINER, e.toString(), e);
View Full Code Here

Examples of com.caucho.vfs.ReadStream.writeToStream()

        try {
          ReadStream is = ts.openRead();

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

Examples of com.caucho.vfs.ReadStream.writeToStream()

    throws IOException
  {
    ReadStream stream = path.openRead();
   
    try {
      stream.writeToStream(os);
    } finally {
      stream.close();
    }
  }
View Full Code Here

Examples of com.caucho.vfs.ReadStream.writeToStream()

    int len;

    Object obj = call.getArgObject(0, length);
    if (obj instanceof ReadStream) {
      ReadStream is = (ReadStream) obj;
      is.writeToStream(os);
    }
    else if (obj instanceof ReadWritePair) {
      ((ReadWritePair) obj).getReadStream().writeToStream(os);
    }
    else if (obj instanceof InputStream) {
View Full Code Here

Examples of com.caucho.vfs.ReadStream.writeToStream()

    OutputStream os = res.getOutputStream();
    InputStream is = _path.openRead(pathInfo, req, app);
    ReadStream rs = Vfs.openRead(is);
    try {
      rs.writeToStream(os);
    } finally {
      rs.close();
    }
  }
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.