All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gw.fs.physical.generic.GenericFileMetadata Maven / Gradle / Ivy

There is a newer version: 1.18.2
Show newest version
/*
 * Copyright 2014 Guidewire Software, Inc.
 */

package gw.fs.physical.generic;

import gw.fs.physical.IFileMetadata;
import gw.lang.UnstableAPI;

import java.io.File;

@UnstableAPI
public class GenericFileMetadata implements IFileMetadata {
  private File _file;

  public GenericFileMetadata(File file) {
    _file = file;
  }

  @Override
  public String name() {
    return _file.getName();
  }

  @Override
  public long length() {
    return _file.length();
  }

  @Override
  public long lastModifiedTime() {
    return _file.lastModified();
  }

  @Override
  public boolean exists() {
    return _file.exists();
  }

  @Override
  public boolean isFile() {
    return _file.isFile();
  }

  @Override
  public boolean isDir() {
    return _file.isDirectory();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy