Package org.renjin.eval.vfs

Source Code of org.renjin.eval.vfs.NonExistentJarFileObject

package org.renjin.eval.vfs;

import org.apache.commons.vfs2.FileSystemException;
import org.apache.commons.vfs2.FileType;
import org.apache.commons.vfs2.provider.AbstractFileName;
import org.apache.commons.vfs2.provider.AbstractFileObject;

import java.io.InputStream;


public class NonExistentJarFileObject extends AbstractFileObject {

  protected NonExistentJarFileObject(AbstractFileName name, FastJarFileSystem fs) {
    super(name, fs);
  }

  @Override
  protected FileType doGetType() throws Exception {
    return FileType.IMAGINARY;
  }

  @Override
  protected String[] doListChildren() throws Exception {
    throw new FileSystemException("File doesn't exist");
  }

  @Override
  protected long doGetContentSize() throws Exception {
    throw new FileSystemException("File doesn't exist");
  }

  @Override
  protected InputStream doGetInputStream() throws Exception {
    throw new FileSystemException("File doesn't exist");
  }
}
TOP

Related Classes of org.renjin.eval.vfs.NonExistentJarFileObject

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.