Package org.jnode.fs.hfsplus.catalog

Examples of org.jnode.fs.hfsplus.catalog.CatalogFile


    }

    @Override
    public long getLastModified() throws IOException {
        if (isFile()) {
            CatalogFile catalogFile = new CatalogFile(getData());
            return catalogFile.getContentModDate();
        } else {
            CatalogFolder catalogFolder = new CatalogFolder(getData());
            return catalogFolder.getContentModDate();
        }
    }
View Full Code Here


    public CatalogFile createCatalogFile() {
        if (!isFile()) {
            throw new IllegalStateException("Attempted to create a catalog file but this entry is not a file!");
        }

        return new CatalogFile(getData());
    }
View Full Code Here

    }

    @Override
    public void setLastModified(long lastModified) throws IOException {
        if (isFile()) {
            CatalogFile catalogFile = new CatalogFile(getData());
            // catalogFile.setContentModDate();
            throw new UnsupportedOperationException("Not implemented yet.");
        } else {
            CatalogFolder catalogFolder = new CatalogFolder(getData());
            catalogFolder.setContentModDate(lastModified);
View Full Code Here

    }

    @Override
    public long getCreated() throws IOException {
        if (isFile()) {
            CatalogFile catalogFile = new CatalogFile(getData());
            return catalogFile.getCreateDate();
        } else {
            CatalogFolder catalogFolder = new CatalogFolder(getData());
            return catalogFolder.getCreateDate();
        }
    }
View Full Code Here

    }

    @Override
    public long getLastAccessed() throws IOException {
        if (isFile()) {
            CatalogFile catalogFile = new CatalogFile(getData());
            return catalogFile.getAccessDate();
        } else {
            CatalogFolder catalogFolder = new CatalogFolder(getData());
            return catalogFolder.getAccessDate();
        }
    }
View Full Code Here

    private CatalogFile file;

    public HfsPlusFile(HfsPlusEntry entry) {
        this.entry = entry;
        this.file = new CatalogFile(entry.getData());
    }
View Full Code Here

TOP

Related Classes of org.jnode.fs.hfsplus.catalog.CatalogFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.