public abstract class ContentFileInfo extends Object
| Constructor and Description |
|---|
ContentFileInfo(File file)
The constructor that sets the file that this object will examine.
|
| Modifier and Type | Method and Description |
|---|---|
File |
getContentFile()
Get the file that this object examines.
|
abstract String |
getDescription(String defaultValue)
Returns an appropriate description for the file content.
|
abstract String |
getVersion(String defaultValue)
Returns an appropriate version of the file content.
|
abstract boolean |
isValid()
Determines if the
file can be processed
by the implementation. |
public ContentFileInfo(File file)
file - the file whose info is managed by this objectpublic File getContentFile()
public abstract boolean isValid()
file can be processed
by the implementation. In other words, if the implementation of this
interface can properly parse the file content to determine
its version (or other information),
this returns true. If the file is of an unknown
content type or is not valid for some reason, false is returned.true if this object can process the content
to determine information about itpublic abstract String getVersion(String defaultValue)
defaultValue - the version string if it cannot be determinedpublic abstract String getDescription(String defaultValue)
defaultValue - the version string if it cannot be determinedCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.