다음을 통해 공유


ShareFileRangeList Class

  • java.lang.Object
    • com.azure.storage.file.share.models.ShareFileRangeList

Implements

public final class ShareFileRangeList
implements XmlSerializable<ShareFileRangeList>

The list of file ranges.

Constructor Summary

Constructor Description
ShareFileRangeList()

Creates an instance of ShareFileRangeList class.

Method Summary

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

Reads an instance of ShareFileRangeList from the XmlReader.

static ShareFileRangeList fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of ShareFileRangeList from the XmlReader.

List<ClearRange> getClearRanges()

Get the clearRanges property: The ClearRanges property.

List<FileRange> getRanges()

Get the ranges property: The Ranges property.

ShareFileRangeList setClearRanges(List<ClearRange> clearRanges)

Set the clearRanges property: The ClearRanges property.

ShareFileRangeList setRanges(List<FileRange> ranges)

Set the ranges property: The Ranges property.

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

Methods inherited from java.lang.Object

Constructor Details

ShareFileRangeList

public ShareFileRangeList()

Creates an instance of ShareFileRangeList class.

Method Details

fromXml

public static ShareFileRangeList fromXml(XmlReader xmlReader)

Reads an instance of ShareFileRangeList from the XmlReader.

Parameters:

xmlReader - The XmlReader being read.

Returns:

An instance of ShareFileRangeList 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 ShareFileRangeList.

fromXml

public static ShareFileRangeList fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of ShareFileRangeList 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 ShareFileRangeList 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 ShareFileRangeList.

getClearRanges

public List getClearRanges()

Get the clearRanges property: The ClearRanges property.

Returns:

the clearRanges value.

getRanges

public List getRanges()

Get the ranges property: The Ranges property.

Returns:

the ranges value.

setClearRanges

public ShareFileRangeList setClearRanges(List clearRanges)

Set the clearRanges property: The ClearRanges property.

Parameters:

clearRanges - the clearRanges value to set.

Returns:

the ShareFileRangeList object itself.

setRanges

public ShareFileRangeList setRanges(List ranges)

Set the ranges property: The Ranges property.

Parameters:

ranges - the ranges value to set.

Returns:

the ShareFileRangeList 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