class FileIOChannelFactory implements IOChannelFactory {

  @Override
  public long getSizeBytes(String spec) throws IOException {
    try {
      return Files.size(specToFile(spec).toPath());
    } catch (NoSuchFileException e) {
      throw new FileNotFoundException(e.getReason());
    }
  }

  private  FileIOChannelFactory();

}