Tabnine Logo
FsController.make
Code IndexAdd Tabnine to your IDE (free)

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

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

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

@Override
public void make(
    BitField<FsAccessOption> options,
    FsNodeName name,
    Type type,
    @CheckForNull Entry template)
throws IOException {
  controller.make(options, name, type, template);
}
origin: net.java.truevfs/truevfs-kernel-spec

@Override
public final void make(BitField<FsAccessOption> options, FsNodeName name, Type type, Entry template) throws IOException {
  controller.make(map(options), name, type, template);
}
origin: net.java.truevfs/truevfs-access

if (null != innerArchive) {
  try {
    innerArchive.getController().make(
        getAccessPreferences(), getNodeName(),
        DIRECTORY,
origin: net.java.truevfs/truevfs-access

/**
 * Creates a new, empty file similar to its superclass implementation.
 * Note that this method doesn't create archive files because archive
 * files are virtual directories, not files!
 *
 * @see #mkdir
 */
@Override
@FsAssertion(consistent=YES, isolated=NO)
public boolean createNewFile() throws IOException {
  if (null != innerArchive) {
    try {
      innerArchive.getController().make(
          getAccessPreferences().set(EXCLUSIVE), getNodeName(),
          FILE,
          null);
      return true;
    } catch (final FileAlreadyExistsException ex) {
      return false;
    }
  }
  return file.createNewFile();
}
origin: net.java.truevfs/truevfs-access

void createDirectory(final TPath path, final FileAttribute<?>... attrs)
throws IOException {
  if (0 < attrs.length)
    throw new UnsupportedOperationException();
  final FsController controller = getController();
  final FsNodeName name = path.getNodeName();
  final BitField<FsAccessOption> options = path.getAccessPreferences();
  try {
    controller.make(
        options, name,
        DIRECTORY,
        null);
  } catch (IOException ex) {
    if (null != controller.node(options, name))
      throw (IOException) new FileAlreadyExistsException(path.toString())
          .initCause(ex);
    throw ex;
  }
}
origin: net.java.truevfs/truevfs-access

final FsNodeName innerEntryName = getNodeName();
try {
  controller.make(    getAccessPreferences(), innerEntryName,
            DIRECTORY, null);
} catch (IOException ex) {
net.java.truevfs.kernel.specFsControllermake

Javadoc

Creates or replaces and finally links a chain of one or more entries for the given node name into the file system.

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
  • input
    Returns an input socket for reading the contents of the file system node addressed by the given name
  • 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

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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