Class Range
java.lang.Object
com.azure.storage.file.share.models.Range
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<Range>
An Azure Storage file range.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Range
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of Range from the XmlReader.static Range
Reads an instance of Range from the XmlReader.long
getEnd()
Get the end property: End of the range.long
getStart()
Get the start property: Start of the range.setEnd
(long end) Set the end property: End of the range.setStart
(long start) Set the start property: Start of the range.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
Range
public Range()Creates a new instance of the Range class.
-
-
Method Details
-
getStart
public long getStart()Get the start property: Start of the range.- Returns:
- the start value.
-
setStart
Set the start property: Start of the range.- Parameters:
start
- the start value to set.- Returns:
- the Range object itself.
-
getEnd
public long getEnd()Get the end property: End of the range.- Returns:
- the end value.
-
setEnd
Set the end property: End of the range.- Parameters:
end
- the end value to set.- Returns:
- the Range object itself.
-
toXml
- Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<Range>
- Throws:
XMLStreamException
-
toXml
public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName) throws XMLStreamException - Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<Range>
- Throws:
XMLStreamException
-
fromXml
Reads an instance of Range from the XmlReader.- Parameters:
xmlReader
- The XmlReader being read.- Returns:
- An instance of Range if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
- Throws:
IllegalStateException
- If the deserialized XML object was missing any required properties.XMLStreamException
- If an error occurs while reading the Range.
-
fromXml
public static Range fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException Reads an instance of Range 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 Range if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
- Throws:
IllegalStateException
- If the deserialized XML object was missing any required properties.XMLStreamException
- If an error occurs while reading the Range.
-