Class BlockList
java.lang.Object
com.azure.storage.blob.models.BlockList
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<BlockList>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockListfromXml(com.azure.xml.XmlReader xmlReader) Reads an instance of BlockList from the XmlReader.static BlockListReads an instance of BlockList from the XmlReader.Get the committedBlocks property: The CommittedBlocks property.Get the uncommittedBlocks property: The UncommittedBlocks property.setCommittedBlocks(List<Block> committedBlocks) Set the committedBlocks property: The CommittedBlocks property.setUncommittedBlocks(List<Block> uncommittedBlocks) Set the uncommittedBlocks property: The UncommittedBlocks property.com.azure.xml.XmlWritertoXml(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
BlockList
public BlockList()Creates an instance of BlockList class.
-
-
Method Details
-
getCommittedBlocks
-
setCommittedBlocks
-
getUncommittedBlocks
-
setUncommittedBlocks
-
toXml
- Specified by:
toXmlin interfacecom.azure.xml.XmlSerializable<BlockList>- Throws:
XMLStreamException
-
toXml
public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName) throws XMLStreamException - Specified by:
toXmlin interfacecom.azure.xml.XmlSerializable<BlockList>- Throws:
XMLStreamException
-
fromXml
Reads an instance of BlockList from the XmlReader.- Parameters:
xmlReader- The XmlReader being read.- Returns:
- An instance of BlockList if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
- Throws:
XMLStreamException- If an error occurs while reading the BlockList.
-
fromXml
public static BlockList fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException Reads an instance of BlockList from the XmlReader.- Parameters:
xmlReader- The XmlReader being read.rootElementName- Optional root element name to override the default defined by the model. Used to support cases where the model can deserialize from different root element names.- Returns:
- An instance of BlockList if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
- Throws:
XMLStreamException- If an error occurs while reading the BlockList.
-