Class PaletteColorFileContentDescriber
java.lang.Object
com.iizigo.fileexts.PaletteColorFileContentDescriber
- All Implemented Interfaces:
IContentDescriber
The content describer for the property files of a palette color: an
.iiziStyle file under the module's style folder whose root tag is paletteColor, told apart from the styles and the font faces that share the extension by that tag, as the font faces are.- Author:
- Christopher Mindus
Field Summary
Fields inherited from interface IContentDescriber
INDETERMINATE, INVALID, VALIDConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionintdescribe(InputStream contents, IContentDescription description) Tries to fill a description for the given contents.Returns the properties supported by this describer.
Constructor Details
PaletteColorFileContentDescriber
public PaletteColorFileContentDescriber()
Method Details
getSupportedOptions
Returns the properties supported by this describer.- Specified by:
getSupportedOptionsin interfaceIContentDescriber- Returns:
- the supported properties
- See Also:
describe
Tries to fill a description for the given contents. Returns anintindicating whether the given stream of bytes represents a valid sample for its corresponding content type. If no content description is provided, this method should perform content type validation.The input stream must be kept open, and any IOExceptions while reading the stream should flow to the caller.
- Specified by:
describein interfaceIContentDescriber- Parameters:
contents- the contents to be examineddescription- a description to be filled in, ornullif only content type validation is to be performed- Returns:
- one of the following:
VALID,INVALID,INDETERMINATE
- Throws:
IOException- if an I/O error occurs- See Also: