Package com._1c.g5.v8.dt.binary.model
Class BinaryDataExtension
- java.lang.Object
-
- com._1c.g5.v8.dt.binary.model.BinaryDataExtension
-
public class BinaryDataExtension extends Object
Operation implementations for EClassBinaryData
.
-
-
Constructor Summary
Constructors Constructor Description BinaryDataExtension()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
buildBinaryDataContentBlobFqn(BinaryData binaryData)
Builds binary data content blob FQN.static String
buildBinaryDataContentBlobFqn(String binaryDataFqn)
Builds binary data content blob FQN.static String
extractBinaryDataFqnFromContentBlobFqn(String fqn)
Extracts the binary data FQN from the corresponding content blob FQN.static InputStream
getContent(BinaryData binaryData)
Gets the contents of the specifiedBinaryData
instance.static boolean
isBinaryDataContentBlobFqn(String fqn)
Checks if the specified FQN belongs to a binary data content blob.static void
setContent(BinaryData binaryData, InputStream content)
Sets the contents of the specifiedBinaryData
instance.
-
-
-
Method Detail
-
getContent
public static InputStream getContent(BinaryData binaryData)
Gets the contents of the specifiedBinaryData
instance.- Parameters:
binaryData
- TheBinaryData
instance. May not benull
.- Returns:
- an
InputStream
instance providing the content. Nevernull
.
-
setContent
public static void setContent(BinaryData binaryData, InputStream content)
Sets the contents of the specifiedBinaryData
instance.- Parameters:
binaryData
- TheBinaryData
instance. May not benull
.content
- AnInputStream
instance providing the content. May not benull
.
-
isBinaryDataContentBlobFqn
public static boolean isBinaryDataContentBlobFqn(String fqn)
Checks if the specified FQN belongs to a binary data content blob.- Parameters:
fqn
- The FQN. May not benull
.- Returns:
true
if the specified FQN belongs to a binary data content blob,false
otherwise.
-
buildBinaryDataContentBlobFqn
public static String buildBinaryDataContentBlobFqn(BinaryData binaryData)
Builds binary data content blob FQN.- Parameters:
binaryData
- The binary data. May not benull
.- Returns:
- the blob FQN. Never
null
.
-
buildBinaryDataContentBlobFqn
public static String buildBinaryDataContentBlobFqn(String binaryDataFqn)
Builds binary data content blob FQN.- Parameters:
binaryDataFqn
- The binary data FQN. May not benull
.- Returns:
- the blob FQN. Never
null
.
-
-