io.advantageous.boon.core.IO.path()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(239)

本文整理了Java中io.advantageous.boon.core.IO.path()方法的一些代码示例,展示了IO.path()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IO.path()方法的具体详情如下:
包路径:io.advantageous.boon.core.IO
类名称:IO
方法名:path

IO.path介绍

暂无

代码示例

代码示例来源:origin: com.github.advantageous/boon-reflekt

@Override
  public Path apply( String s ) {
    return path(s);
  }
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

@Override
  public Path apply( String s ) {
    return path(s);
  }
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

public static Path createChildDirectory( Path parentDir, String childDir ) {
  try {
    final Path newDir = path( parentDir.toString(),
        childDir );
    if ( !Files.exists( newDir ) ) {
      Files.createDirectory( newDir );
    }
    return newDir;
  } catch ( Exception ex ) {
    return Exceptions.handle( Path.class, ex );
  }
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

public static void createDirectories(String path) {
  try {
    Files.createDirectories(path(path));
  } catch (IOException e) {
    Exceptions.handle(e);
  }
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

public static InputStream inputStream( String resource ) {
  Path path = path(resource);
  try {
    return Files.newInputStream( path );
  } catch ( IOException e ) {
    return Exceptions.handle( InputStream.class, "unable to open " + resource, e );
  }
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

public static void delete(String path) {
  try {
    Files.delete(path(path));
  } catch (IOException e) {
    Exceptions.handle(e);
  }
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

public static void delete(String path) {
  try {
    Files.delete(path(path));
  } catch (IOException e) {
    Exceptions.handle(e);
  }
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

public static List<String> listByGlob( final String path, final String glob ) {
  final Path pathFromFileSystem = path(path);
  return listByGlob( pathFromFileSystem, glob );
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

public static List<String> list( final String path ) {
    final Path pathFromFileSystem = path(path);
    return list( pathFromFileSystem );
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

public static Path createChildDirectory( Path parentDir, String childDir ) {
  try {
    final Path newDir = path( parentDir.toString(),
        childDir );
    if ( !Files.exists( newDir ) ) {
      Files.createDirectory( newDir );
    }
    return newDir;
  } catch ( Exception ex ) {
    return Exceptions.handle( Path.class, ex );
  }
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

public static InputStream inputStream( String resource ) {
  Path path = path(resource);
  try {
    return Files.newInputStream( path );
  } catch ( IOException e ) {
    return Exceptions.handle( InputStream.class, "unable to open " + resource, e );
  }
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

public static void createDirectories(String path) {
  try {
    Files.createDirectories(path(path));
  } catch (IOException e) {
    Exceptions.handle(e);
  }
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

public static void writeChild( Path parentDir, String childFileName, String childContents ) {
  try {
    final Path newFilePath = path( parentDir.toString(),
        childFileName );
    write( newFilePath, childContents );
  } catch ( Exception ex ) {
    Exceptions.handle( ex );
  }
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

public static void writeChild( Path parentDir, String childFileName, String childContents ) {
  try {
    final Path newFilePath = path( parentDir.toString(),
        childFileName );
    write( newFilePath, childContents );
  } catch ( Exception ex ) {
    Exceptions.handle( ex );
  }
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

public static String readChild( Path parentDir, String childFileName ) {
  try {
    final Path newFilePath = path( parentDir.toString(),
        childFileName );
    return read( newFilePath );
  } catch ( Exception ex ) {
    return Exceptions.handle( String.class, ex );
  }
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

public static byte[] input( String fileName ) {
  try {
    return input( Files.newInputStream( path(fileName) ) );
  } catch ( IOException e ) {
    return Exceptions.handle( byte[].class, e );
  }
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

public static String readChild( Path parentDir, String childFileName ) {
  try {
    final Path newFilePath = path( parentDir.toString(),
        childFileName );
    return read( newFilePath );
  } catch ( Exception ex ) {
    return Exceptions.handle( String.class, ex );
  }
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

public static byte[] input( String fileName ) {
  try {
    return input( Files.newInputStream( path(fileName) ) );
  } catch ( IOException e ) {
    return Exceptions.handle( byte[].class, e );
  }
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

public static Path createDirectory( String dir ) {
  try {
    final Path newDir = path(dir);
    createDirectory( newDir );
    return newDir;
  } catch ( Exception ex ) {
    return Exceptions.handle( Path.class, ex );
  }
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

public static Path createDirectory( String dir ) {
  try {
    final Path newDir = path(dir);
    createDirectory( newDir );
    return newDir;
  } catch ( Exception ex ) {
    return Exceptions.handle( Path.class, ex );
  }
}

相关文章