azure-docs-sdk-java/docs-ref-autogen/com.azure.storage.blob.mode...

183 строки
11 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.storage.blob.models.Block"
fullName: "com.azure.storage.blob.models.Block"
name: "Block"
nameWithType: "Block"
summary: "Represents a single block in a block blob."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **Block**</br> implements <xref href=\"com.azure.xml.XmlSerializable?alt=com.azure.xml.XmlSerializable&text=XmlSerializable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.storage.blob.models.Block?alt=com.azure.storage.blob.models.Block&text=Block\" data-throw-if-not-resolved=\"False\" />&gt;"
constructors:
- uid: "com.azure.storage.blob.models.Block.Block()"
fullName: "com.azure.storage.blob.models.Block.Block()"
name: "Block()"
nameWithType: "Block.Block()"
summary: "Creates an instance of Block class."
syntax: "public Block()"
desc: "Creates an instance of Block class."
methods:
- uid: "com.azure.storage.blob.models.Block.fromXml(com.azure.xml.XmlReader)"
fullName: "com.azure.storage.blob.models.Block.fromXml(XmlReader xmlReader)"
name: "fromXml(XmlReader xmlReader)"
nameWithType: "Block.fromXml(XmlReader xmlReader)"
summary: "Reads an instance of Block from the Xml<wbr>Reader."
modifiers:
- "static"
parameters:
- description: "The XmlReader being read."
name: "xmlReader"
type: "<xref href=\"com.azure.xml.XmlReader?alt=com.azure.xml.XmlReader&text=XmlReader\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static Block fromXml(XmlReader xmlReader)"
exceptions:
- description: "If the deserialized XML object was missing any required properties."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/javax/xml/stream/XMLStreamException.html\">XMLStreamException</a>"
desc: "Reads an instance of Block from the XmlReader."
returns:
description: "An instance of Block if the XmlReader was pointing to an instance of it, or null if it was pointing to\n XML null."
type: "<xref href=\"com.azure.storage.blob.models.Block?alt=com.azure.storage.blob.models.Block&text=Block\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.models.Block.fromXml(com.azure.xml.XmlReader,java.lang.String)"
fullName: "com.azure.storage.blob.models.Block.fromXml(XmlReader xmlReader, String rootElementName)"
name: "fromXml(XmlReader xmlReader, String rootElementName)"
nameWithType: "Block.fromXml(XmlReader xmlReader, String rootElementName)"
summary: "Reads an instance of Block from the Xml<wbr>Reader."
modifiers:
- "static"
parameters:
- description: "The XmlReader being read."
name: "xmlReader"
type: "<xref href=\"com.azure.xml.XmlReader?alt=com.azure.xml.XmlReader&text=XmlReader\" data-throw-if-not-resolved=\"False\" />"
- description: "Optional root element name to override the default defined by the model. Used to support\n cases where the model can deserialize from different root element names."
name: "rootElementName"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public static Block fromXml(XmlReader xmlReader, String rootElementName)"
exceptions:
- description: "If the deserialized XML object was missing any required properties."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/javax/xml/stream/XMLStreamException.html\">XMLStreamException</a>"
desc: "Reads an instance of Block from the XmlReader."
returns:
description: "An instance of Block if the XmlReader was pointing to an instance of it, or null if it was pointing to\n XML null."
type: "<xref href=\"com.azure.storage.blob.models.Block?alt=com.azure.storage.blob.models.Block&text=Block\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.models.Block.getName()"
fullName: "com.azure.storage.blob.models.Block.getName()"
name: "getName()"
nameWithType: "Block.getName()"
summary: "Get the name property: The base64 encoded block ID."
syntax: "public String getName()"
desc: "Get the name property: The base64 encoded block ID."
returns:
description: "the name value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.storage.blob.models.Block.getSize()"
fullName: "com.azure.storage.blob.models.Block.getSize()"
name: "getSize()"
nameWithType: "Block.getSize()"
summary: "Get the size<wbr>Int property: The Size<wbr>Int property."
deprecatedTag: "Use <xref uid=\"com.azure.storage.blob.models.Block.getSizeLong()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#getSizeLong()\"></xref>"
syntax: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html\">@Deprecated</a></br>public int getSize()"
desc: "Get the sizeInt property: The SizeInt property."
hasDeprecatedTag: true
returns:
description: "the sizeInt value."
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.models.Block.getSizeLong()"
fullName: "com.azure.storage.blob.models.Block.getSizeLong()"
name: "getSizeLong()"
nameWithType: "Block.getSizeLong()"
summary: "Get the size<wbr>Long property: The block size in bytes."
syntax: "public long getSizeLong()"
desc: "Get the sizeLong property: The block size in bytes."
returns:
description: "the sizeLong value."
type: "<xref href=\"long?alt=long&text=long\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.models.Block.setName(java.lang.String)"
fullName: "com.azure.storage.blob.models.Block.setName(String name)"
name: "setName(String name)"
nameWithType: "Block.setName(String name)"
summary: "Set the name property: The base64 encoded block ID."
parameters:
- description: "the name value to set."
name: "name"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public Block setName(String name)"
desc: "Set the name property: The base64 encoded block ID."
returns:
description: "the Block object itself."
type: "<xref href=\"com.azure.storage.blob.models.Block?alt=com.azure.storage.blob.models.Block&text=Block\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.models.Block.setSize(int)"
fullName: "com.azure.storage.blob.models.Block.setSize(int sizeInt)"
name: "setSize(int sizeInt)"
nameWithType: "Block.setSize(int sizeInt)"
summary: "Set the size<wbr>Int property: The Size<wbr>Int property."
deprecatedTag: "Use <xref uid=\"com.azure.storage.blob.models.Block.setSizeLong(long)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#setSizeLong(long)\"></xref>"
parameters:
- description: "the sizeInt value to set."
name: "sizeInt"
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
syntax: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html\">@Deprecated</a></br>public Block setSize(int sizeInt)"
desc: "Set the sizeInt property: The SizeInt property."
hasDeprecatedTag: true
returns:
description: "the Block object itself."
type: "<xref href=\"com.azure.storage.blob.models.Block?alt=com.azure.storage.blob.models.Block&text=Block\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.models.Block.setSizeLong(long)"
fullName: "com.azure.storage.blob.models.Block.setSizeLong(long sizeLong)"
name: "setSizeLong(long sizeLong)"
nameWithType: "Block.setSizeLong(long sizeLong)"
summary: "Set the size<wbr>Long property: The block size in bytes."
parameters:
- description: "the sizeLong value to set."
name: "sizeLong"
type: "<xref href=\"long?alt=long&text=long\" data-throw-if-not-resolved=\"False\" />"
syntax: "public Block setSizeLong(long sizeLong)"
desc: "Set the sizeLong property: The block size in bytes."
returns:
description: "the Block object itself."
type: "<xref href=\"com.azure.storage.blob.models.Block?alt=com.azure.storage.blob.models.Block&text=Block\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.models.Block.toXml(com.azure.xml.XmlWriter)"
fullName: "com.azure.storage.blob.models.Block.toXml(XmlWriter xmlWriter)"
name: "toXml(XmlWriter xmlWriter)"
nameWithType: "Block.toXml(XmlWriter xmlWriter)"
parameters:
- name: "xmlWriter"
type: "<xref href=\"com.azure.xml.XmlWriter?alt=com.azure.xml.XmlWriter&text=XmlWriter\" data-throw-if-not-resolved=\"False\" />"
syntax: "public XmlWriter toXml(XmlWriter xmlWriter)"
exceptions:
- type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/javax/xml/stream/XMLStreamException.html\">XMLStreamException</a>"
returns:
type: "<xref href=\"com.azure.xml.XmlWriter?alt=com.azure.xml.XmlWriter&text=XmlWriter\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.models.Block.toXml(com.azure.xml.XmlWriter,java.lang.String)"
fullName: "com.azure.storage.blob.models.Block.toXml(XmlWriter xmlWriter, String rootElementName)"
name: "toXml(XmlWriter xmlWriter, String rootElementName)"
nameWithType: "Block.toXml(XmlWriter xmlWriter, String rootElementName)"
parameters:
- name: "xmlWriter"
type: "<xref href=\"com.azure.xml.XmlWriter?alt=com.azure.xml.XmlWriter&text=XmlWriter\" data-throw-if-not-resolved=\"False\" />"
- name: "rootElementName"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)"
exceptions:
- type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/javax/xml/stream/XMLStreamException.html\">XMLStreamException</a>"
returns:
type: "<xref href=\"com.azure.xml.XmlWriter?alt=com.azure.xml.XmlWriter&text=XmlWriter\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Represents a single block in a block blob. It describes the block's ID and size."
implements:
- "<xref href=\"com.azure.xml.XmlSerializable?alt=com.azure.xml.XmlSerializable&text=XmlSerializable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.storage.blob.models.Block?alt=com.azure.storage.blob.models.Block&text=Block\" data-throw-if-not-resolved=\"False\" />&gt;"
metadata: {}
package: "com.azure.storage.blob.models"
artifact: com.azure:azure-storage-blob:12.28.1