org.geotools.data.coverage.grid.file
Class FileMetadataImpl

java.lang.Object
  extended byorg.geotools.data.coverage.grid.file.FileMetadataImpl
All Implemented Interfaces:
FileMetadata

public class FileMetadataImpl
extends java.lang.Object
implements FileMetadata

A simple implementation of FileMetadata

Author:
jeichar, Simone Giannecchini (simboss)

Constructor Summary
FileMetadataImpl(java.io.File file, org.opengis.coverage.grid.Format format)
          Create a FileMetadata Instance
 
Method Summary
 java.lang.String getExtension()
          Returns the extension of the file.
 java.io.File getFile()
           
 org.opengis.coverage.grid.Format getFormat()
          Returns the format of the file if it is known;
 long getLastModified()
          Returns the date the file was last modified.
 java.lang.String getName()
          Returns the File name
 java.lang.String getPath()
          Returns the path of the file.
 void setFormat(org.opengis.coverage.grid.Format format)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileMetadataImpl

public FileMetadataImpl(java.io.File file,
                        org.opengis.coverage.grid.Format format)
Create a FileMetadata Instance

Parameters:
file - the file the metadata will describe
format - the format type of the file "unkown" is the format is unknown Static fields should be used
Method Detail

getName

public java.lang.String getName()
Description copied from interface: FileMetadata
Returns the File name

Specified by:
getName in interface FileMetadata
Returns:
Returns the File name
See Also:
org.opengis.catalog.MetadataEntity#getName()

getExtension

public java.lang.String getExtension()
Description copied from interface: FileMetadata
Returns the extension of the file.

Specified by:
getExtension in interface FileMetadata
Returns:
Returns the extension.

getFile

public java.io.File getFile()
Returns:
Returns the associated file.

getFormat

public org.opengis.coverage.grid.Format getFormat()
Description copied from interface: FileMetadata
Returns the format of the file if it is known;

Specified by:
getFormat in interface FileMetadata
Returns:
Returns the format.

getLastModified

public long getLastModified()
Description copied from interface: FileMetadata
Returns the date the file was last modified.

Specified by:
getLastModified in interface FileMetadata
Returns:
Returns the lastModified.

getPath

public java.lang.String getPath()
Description copied from interface: FileMetadata
Returns the path of the file.

Specified by:
getPath in interface FileMetadata
Returns:
Returns the path.

setFormat

public void setFormat(org.opengis.coverage.grid.Format format)
Parameters:
format - The format to set.


Copyright © GeoTools. All Rights Reserved.