class Files {

    public static long size(final Path path)
            throws IllegalArgumentException, IOException, SecurityException {
        checkNotNull("path",
                     path);

        return readAttributes(path,
                              BasicFileAttributes.class).size();
    }

    private  Files();

}