congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
FsController.input
Code IndexAdd Tabnine to your IDE (free)

How to use
input
method
in
net.java.truevfs.kernel.spec.FsController

Best Java code snippets using net.java.truevfs.kernel.spec.FsController.input (Showing top 7 results out of 315)

origin: net.java.truevfs/truevfs-kernel-spec

@Override
public InputSocket<? extends Entry> input(
    BitField<FsAccessOption> options,
    FsNodeName name) {
  return controller.input(options, name);
}
origin: net.java.truevfs/truevfs-kernel-spec

@Override
public final InputSocket<? extends Entry> input(BitField<FsAccessOption> options, FsNodeName name) {
  return controller.input(map(options), name);
}
origin: net.java.truevfs/truevfs-kernel-spec

/**
 * Called to prepare reading an archive file artifact of this driver from
 * {@code name} in {@code controller} using {@code options}.
 * <p>
 * This method is overridable to enable modifying the given options
 * before forwarding the call to the given controller.
 * The implementation in the class {@link FsArchiveDriver} simply forwards
 * the call to the given controller with the given options unaltered.
 *
 * @param  options the options for accessing the file system node.
 * @param  controller the controller to use for reading an artifact of this
 *         driver.
 * @param  name the node name.
 * @return A source for reading an artifact of this driver.
 * @see    #newInput(FsModel, BitField, FsController, FsNodeName)
 */
protected FsInputSocketSource source(
    BitField<FsAccessOption> options,
    FsController controller,
    FsNodeName name) {
  return new FsInputSocketSource(options, controller.input(options, name));
}
origin: net.java.truevfs/truevfs-access

InputSocket<?> input(   TPath path,
            BitField<FsAccessOption> options) {
  return getController().input(options, path.getNodeName());
}
origin: net.java.truevfs/truevfs-access

InputStream newInputStream(TPath path, OpenOption... options)
throws IOException {
  return getController()
      .input(path.inputOptions(options), path.getNodeName())
      .stream(null);
}
origin: net.java.truevfs/truevfs-access

/**
 * Returns an input socket for the given file.
 * 
 * @param  file the file to read.
 * @param  options the options for accessing the file.
 * @return An input socket for the given file.
 */
static InputSocket<?> input(
    final BitField<FsAccessOption> options,
    final File file) {
  if (file instanceof TFile) {
    final TFile tfile=  (TFile) file;
    final TFile archive = tfile.getInnerArchive();
    if (null != archive)
      return archive
          .getController()
          .input(options, tfile.getNodeName());
  }
  final FsNodePath path = new FsNodePath(file);
  return  TConfig
      .current()
      .getManager()
      .controller(detector(file), path.getMountPoint())
      .input(options, path.getNodeName());
}
origin: net.java.truevfs/truevfs-access

SeekableByteChannel newByteChannel(
    final TPath path,
    final Set<? extends OpenOption> options,
    final FileAttribute<?>... attrs)
throws IOException {
  final FsNodeName name = path.getNodeName();
  final FsController controller = getController();
  if (options.isEmpty() || options.contains(StandardOpenOption.READ)) {
    final BitField<FsAccessOption>
        o = path.inputOptions(options).set(CACHE);
    return controller
        .input(o, name)
        .channel(null);
  } else {
    final BitField<FsAccessOption>
        o = path.outputOptions(options).set(CACHE);
    try {
      return controller
          .output(o, name, null)
          .channel(null);
    } catch (final IOException ex) {
      // TODO: Filter FileAlreadyExistsException.
      if (o.get(EXCLUSIVE) && null != controller.node(o, name))
        throw (IOException) new FileAlreadyExistsException(path.toString())
            .initCause(ex);
      throw ex;
    }
  }
}
net.java.truevfs.kernel.specFsControllerinput

Javadoc

Returns an input socket for reading the contents of the file system node addressed by the given name from the file system. Note that the assertions for this file system operation equally apply to any channel or stream created by the returned input socket!

Popular methods of FsController

  • node
    Returns the file system node for the given name or nullif it doesn't exist. Modifying the returned n
  • checkAccess
    Checks if the file system node for the given name exists when constrained by the given access option
  • getModel
    Returns the file system model.
  • output
    Returns an output socket for writing the contents of the node addressed by the given name to the fil
  • unlink
    Removes the named file system node from the file system. If the named file system node is a director
  • getParent
    Returns the controller for the parent file system or null if and only if this file system is not fed
  • make
    Creates or replaces and finally links a chain of one or more entries for the given node name into th
  • setReadOnly
    Sets the named file system node as read-only. This method will fail for typical archive file system
  • setTime
    Makes an attempt to set the last access time of all types in the given bit field for the file system
  • sync
    Commits all unsynchronized changes to the contents of this file system to its parent file system, re

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now