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.
-
-
Constructor Summary
Constructors Constructor Description BslBinaryContentDescriber()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describe(InputStream contents, org.eclipse.core.runtime.content.IContentDescription description)
org.eclipse.core.runtime.QualifiedName[]
getSupportedOptions()
static boolean
isBslBinaryContent(InputStream contents)
Returns whether the provided content is BSL binary content.
-
-
-
Field Detail
-
ID
public static final String ID
The id of the BSL binary files content type.- See Also:
- Constant Field Values
-
-
Method Detail
-
isBslBinaryContent
public static boolean isBslBinaryContent(InputStream contents) throws IOException
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
-
-