Tabnine Logo
PathSpecWindows.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
de.pfabulist.kleinod.nio.PathSpecWindows
constructor

Best Java code snippets using de.pfabulist.kleinod.nio.PathSpecWindows.<init> (Showing top 3 results out of 315)

origin: de.pfabulist.lindwurm/memoryfs

public static MemoryFSBuilder windows() {
  return new MemoryFSBuilder().
      pathSpec( new PathSpecWindows() ).
      primaryStoreName( "c:").
      attributeView( DosFileAttributeView.class );
}
origin: de.pfabulist.lindwurm/niotest

public WindowsBuilder( FSDescription descr, T t ) {
  super( descr, t );
  descr.removeTopic( Unix.class );
  PathLimits pathLimits = new PathLimits( OS.WINDOWS );
  PathSpec pathSpec = new PathSpecWindows();
  descr.props.put( Tests10PathWithContent.ONE_CHAR_COUNT, pathLimits.getBigChar() );
  descr.props.put( Tests10PathWithContent.MAX_FILENAME_LENGTH, pathSpec.getMaxFilenameLength() );
  descr.props.put( Tests10PathWithContent.MAX_PATH_LENGTH, pathSpec.getMaxPathLength() );
  descr.props.put( Tests10PathWithContent.GET_FILENAME_LENGTH, (Function<String,Integer>)pathSpec::getFilenameLength );
  descr.props.put( Tests10PathWithContent.GET_PATH_LENGTH, (Function<String,Integer>)pathSpec::getPathLength );
  descr.removeTopic( Posix.class );
  descr.removeTopic( MoveWhile.class );
  descr.removeTopic( NonCasePreserving.class );
  descr.removeTopic( FileKeyT.class );
  descr.props.put( "illegalCharacters", Arrays.asList( ':', '?', '<', '>', '*', '|', '"' ));
  descr.attributeDescriptions.put( "dos",
      attributeBuilding( DosAttributesT.class, "dos", DosFileAttributeView.class, DosFileAttributes.class ).
          addAttribute( "hidden", DosFileAttributes::isHidden ).
          addAttribute( "archive", DosFileAttributes::isArchive ).
          addAttribute( "system", DosFileAttributes::isSystem ).
          addAttribute( "readonly", DosFileAttributes::isReadOnly ).
          build() );
}
origin: de.pfabulist.kleinod/kleinod-nio

static PathSpec byOS( OS os ) {
  if ( os.isWindows() ) {
    return new PathSpecWindows();
  }
  if ( os.isOSX() ) {
    return new PathSpecOSX();
  }
  if ( os.isUnix() ) {
    return new PathSpecUnix();
  }
  return new PathSpecDefault();
}
de.pfabulist.kleinod.nioPathSpecWindows<init>

Popular methods of PathSpecWindows

  • getNormalForm

Popular in Java

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • setContentView (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top plugins for WebStorm
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