Class ShareFileRangeList

java.lang.Object
com.azure.storage.file.share.models.ShareFileRangeList
All Implemented Interfaces:
com.azure.xml.XmlSerializable<ShareFileRangeList>

public final class ShareFileRangeList extends Object implements com.azure.xml.XmlSerializable<ShareFileRangeList>
The list of file ranges.
  • Constructor Details

    • ShareFileRangeList

      public ShareFileRangeList()
      Creates an instance of ShareFileRangeList class.
  • Method Details

    • getRanges

      public List<FileRange> getRanges()
      Get the ranges property: The Ranges property.
      Returns:
      the ranges value.
    • setRanges

      public ShareFileRangeList setRanges(List<FileRange> ranges)
      Set the ranges property: The Ranges property.
      Parameters:
      ranges - the ranges value to set.
      Returns:
      the ShareFileRangeList object itself.
    • getClearRanges

      public List<ClearRange> getClearRanges()
      Get the clearRanges property: The ClearRanges property.
      Returns:
      the clearRanges value.
    • setClearRanges

      public ShareFileRangeList setClearRanges(List<ClearRange> clearRanges)
      Set the clearRanges property: The ClearRanges property.
      Parameters:
      clearRanges - the clearRanges value to set.
      Returns:
      the ShareFileRangeList object itself.
    • toXml

      public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter) throws XMLStreamException
      Specified by:
      toXml in interface com.azure.xml.XmlSerializable<ShareFileRangeList>
      Throws:
      XMLStreamException
    • toXml

      public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName) throws XMLStreamException
      Specified by:
      toXml in interface com.azure.xml.XmlSerializable<ShareFileRangeList>
      Throws:
      XMLStreamException
    • fromXml

      public static ShareFileRangeList fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException
      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(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException
      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.