Package org.jboss.fresh.vfs

Examples of org.jboss.fresh.vfs.FileReadInfo


        FileName path = (FileName) it.next();

        FileOpInfo op = new FileOpInfo();
        op.filename = path;
//        op.offset = 0;
        FileReadInfo read = null;

        do {
          read = vfs.read(shell.getUserCtx(), op);

          // if file has no content(is asset, etc.) null is returned by vfs.read()
View Full Code Here


          return;
        }
       
        opinf.filename = info.getFileName();
//System.out.println("finfo: " + info);
        rinf = new FileReadInfo();
        rinf.more = true;

    }
View Full Code Here

      return null;

    FileName untranName = info.filename;
    info.filename = translate(dat, info.filename);

    FileReadInfo inf = dat.vfs.read(uctx, info);
    info.filename = untranName;
    return inf;
  }
View Full Code Here

      int bufsize = 8192;
      boolean more = free > bufsize;
      if(free < bufsize)
        bufsize = free;

      FileReadInfo ri = new FileReadInfo();
      ri.buf = new byte[bufsize];

      int rc = raf.read(ri.buf);
      if(rc != ri.buf.length) {
        byte [] nubuf = new byte[rc];
View Full Code Here

  /** Reads a chunk of content data and returns it as FileRetInfo object.
   *  FileOpInfo must be filled filename (file must exist), filepos and buf.
   */
  public FileReadInfo readContent(FileOpInfo info) throws Exception {

    FileReadInfo result = new FileReadInfo();
    long count;

      Object node = null;
      try {
        node = getResolvedNode(info.filename.toString());
View Full Code Here

      String sourceTag = copy.getTag();
      copy.setFileName(dest);
      String targetTag = vfs.createFile(shell.getUserCtx(), copy);

      if (vfs.hasContent(shell.getUserCtx(), file, true)) {
        FileReadInfo read;
        FileOpInfo readOp, writeOp;
        readOp = new FileOpInfo();
        readOp.filename = file;
        readOp.tag = sourceTag;
        writeOp = new FileOpInfo();
View Full Code Here

TOP

Related Classes of org.jboss.fresh.vfs.FileReadInfo

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.