public class GZipContentDescriber extends Object implements org.eclipse.core.runtime.content.IContentDescriber, org.eclipse.core.runtime.IExecutableExtension
Modifier and Type | Field and Description |
---|---|
static String |
GZIP_CONTENT_TYPE_ID
The GZip content type identifier as specified in the plugin.xml
|
Constructor and Description |
---|
GZipContentDescriber()
Default constructor.
|
GZipContentDescriber(org.eclipse.core.runtime.content.IContentDescriber internalContentDescriber)
Constructor using an internal content describer for the uncompressed
content.
|
Modifier and Type | Method and Description |
---|---|
int |
describe(InputStream contents,
org.eclipse.core.runtime.content.IContentDescription description) |
org.eclipse.core.runtime.QualifiedName[] |
getSupportedOptions() |
static boolean |
isGZipContentType(org.eclipse.core.runtime.content.IContentType contentType)
Determines if the given content type is a GZip content type.
|
void |
setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
String propertyName,
Object data) |
public static final String GZIP_CONTENT_TYPE_ID
public GZipContentDescriber()
public GZipContentDescriber(org.eclipse.core.runtime.content.IContentDescriber internalContentDescriber)
internalContentDescriber
- the content describer for the
uncompressed contentpublic int describe(InputStream contents, org.eclipse.core.runtime.content.IContentDescription description) throws IOException
describe
in interface org.eclipse.core.runtime.content.IContentDescriber
IOException
IContentDescriber.describe(InputStream, IContentDescription)
public org.eclipse.core.runtime.QualifiedName[] getSupportedOptions()
getSupportedOptions
in interface org.eclipse.core.runtime.content.IContentDescriber
IContentDescriber.getSupportedOptions()
public static boolean isGZipContentType(org.eclipse.core.runtime.content.IContentType contentType)
contentType
- the content typetrue
if the content type is the GZip content type or
it extends the GZip content typepublic void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config, String propertyName, Object data) throws org.eclipse.core.runtime.CoreException
setInitializationData
in interface org.eclipse.core.runtime.IExecutableExtension
org.eclipse.core.runtime.CoreException
IExecutableExtension.setInitializationData(IConfigurationElement,
String, Object)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a