Package com._1c.g5.v8.dt.bsl.resource
Class BslBinaryContentDescriber
java.lang.Object
com._1c.g5.v8.dt.bsl.resource.BslBinaryContentDescriber
- All Implemented Interfaces:
org.eclipse.core.runtime.content.IContentDescriber
public class BslBinaryContentDescriber
extends Object
implements org.eclipse.core.runtime.content.IContentDescriber
Content describer for the BSL binary files.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The id of the BSL binary files content type.Fields inherited from interface org.eclipse.core.runtime.content.IContentDescriber
INDETERMINATE, INVALID, VALID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
describe
(InputStream contents, org.eclipse.core.runtime.content.IContentDescription description) org.eclipse.core.runtime.QualifiedName[]
static boolean
isBslBinaryContent
(InputStream contents) Returns whether the provided content is BSL binary content.
-
Field Details
-
ID
The id of the BSL binary files content type.- See Also:
-
-
Constructor Details
-
BslBinaryContentDescriber
public BslBinaryContentDescriber()
-
-
Method Details
-
isBslBinaryContent
Returns whether the provided content is BSL binary content.- Parameters:
contents
- the contents to be examined, cannot benull
- Returns:
- whether the provided content is BSL binary content
- Throws:
IOException
- if an I/O error occurs
-
describe
public int describe(InputStream contents, org.eclipse.core.runtime.content.IContentDescription description) throws IOException - Specified by:
describe
in interfaceorg.eclipse.core.runtime.content.IContentDescriber
- Throws:
IOException
-
getSupportedOptions
public org.eclipse.core.runtime.QualifiedName[] getSupportedOptions()- Specified by:
getSupportedOptions
in interfaceorg.eclipse.core.runtime.content.IContentDescriber
-