Freigeben über


BlockList Class

  • java.lang.Object
    • com.azure.storage.blob.models.BlockList

Implements

public final class BlockList
implements XmlSerializable<BlockList>

The BlockList model.

Constructor Summary

Constructor Description
BlockList()

Creates an instance of BlockList class.

Method Summary

Modifier and Type Method and Description
static BlockList fromXml(XmlReader xmlReader)

Reads an instance of BlockList from the XmlReader.

static BlockList fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of BlockList from the XmlReader.

List<Block> getCommittedBlocks()

Get the committedBlocks property: The CommittedBlocks property.

List<Block> getUncommittedBlocks()

Get the uncommittedBlocks property: The UncommittedBlocks property.

BlockList setCommittedBlocks(List<Block> committedBlocks)

Set the committedBlocks property: The CommittedBlocks property.

BlockList setUncommittedBlocks(List<Block> uncommittedBlocks)

Set the uncommittedBlocks property: The UncommittedBlocks property.

XmlWriter toXml(XmlWriter xmlWriter)
XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Methods inherited from java.lang.Object

Constructor Details

BlockList

public BlockList()

Creates an instance of BlockList class.

Method Details

fromXml

public static BlockList fromXml(XmlReader xmlReader)

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(XmlReader xmlReader, String rootElementName)

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.

getCommittedBlocks

public List getCommittedBlocks()

Get the committedBlocks property: The CommittedBlocks property.

Returns:

the committedBlocks value.

getUncommittedBlocks

public List getUncommittedBlocks()

Get the uncommittedBlocks property: The UncommittedBlocks property.

Returns:

the uncommittedBlocks value.

setCommittedBlocks

public BlockList setCommittedBlocks(List committedBlocks)

Set the committedBlocks property: The CommittedBlocks property.

Parameters:

committedBlocks - the committedBlocks value to set.

Returns:

the BlockList object itself.

setUncommittedBlocks

public BlockList setUncommittedBlocks(List uncommittedBlocks)

Set the uncommittedBlocks property: The UncommittedBlocks property.

Parameters:

uncommittedBlocks - the uncommittedBlocks value to set.

Returns:

the BlockList object itself.

toXml

public XmlWriter toXml(XmlWriter xmlWriter)

Parameters:

xmlWriter

Throws:

toXml

public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Parameters:

xmlWriter
rootElementName

Throws:

Applies to