Package com.iizigo.fileexts
Class PropertiesFileContentDescriber
java.lang.Object
com.iizigo.fileexts.PropertiesFileContentDescriber
- All Implemented Interfaces:
- IContentDescriber
- Direct Known Subclasses:
- ContextMenuFileContentDescriber,- FontFacesFileContentDescriber,- PanelFileContentDescriber,- StyleFileContentDescriber
The content describer for the property files. The properties file must have the following format and cannot a contain comment text before the first line:
[?xml version="1.0" encoding="UTF-8" standalone="no"?] [UIPanel name="customers"]
- Author:
- Christopher Mindus
- Field Summary- Fields inherited from interface org.eclipse.core.runtime.content.IContentDescriber- INDETERMINATE, INVALID, VALID
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- int- describe- (InputStream contents, IContentDescription description) Tries to fill a description for the given contents.Returns the properties supported by this describer.- protected abstract String[]- getTags()Gets the list of tags names that is the content can process.
- Constructor Details- PropertiesFileContentDescriberpublic PropertiesFileContentDescriber()The constructor.
 
- Method Details- getTagsGets the list of tags names that is the content can process. See the file "com.iizix.schema.base-properties.xml" for the tag names.- Returns:
- The array of supported tags.
 
- getSupportedOptionsReturns the properties supported by this describer.- Specified by:
- getSupportedOptionsin interface- IContentDescriber
- Returns:
- the supported properties
- See Also:
 
- describeTries to fill a description for the given contents. Returns an- intindicating 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 interface- IContentDescriber
- Parameters:
- contents- the contents to be examined
- description- a description to be filled in, or- nullif 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: