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 StringbuildBinaryDataContentBlobFqn(BinaryData binaryData)Builds binary data content blob FQN.static StringbuildBinaryDataContentBlobFqn(String binaryDataFqn)Builds binary data content blob FQN.static StringextractBinaryDataFqnFromContentBlobFqn(String fqn)Extracts the binary data FQN from the corresponding content blob FQN.static InputStreamgetContent(BinaryData binaryData)Gets the contents of the specifiedBinaryDatainstance.static booleanisBinaryDataContentBlobFqn(String fqn)Checks if the specified FQN belongs to a binary data content blob.static voidsetContent(BinaryData binaryData, InputStream content)Sets the contents of the specifiedBinaryDatainstance.
-
-
-
Method Detail
-
getContent
public static InputStream getContent(BinaryData binaryData)
Gets the contents of the specifiedBinaryDatainstance.- Parameters:
binaryData- TheBinaryDatainstance. May not benull.- Returns:
- an
InputStreaminstance providing the content. Nevernull.
-
setContent
public static void setContent(BinaryData binaryData, InputStream content)
Sets the contents of the specifiedBinaryDatainstance.- Parameters:
binaryData- TheBinaryDatainstance. May not benull.content- AnInputStreaminstance 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:
trueif the specified FQN belongs to a binary data content blob,falseotherwise.
-
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.
-
-