FileRange Class

  • java.lang.Object
    • com.microsoft.azure.storage.file.FileRange

public class FileRange

Represents a range of bytes in a file.

Constructor Summary

Constructor Description
FileRange(final long start, final long end)

Creates an instance of the class.

Method Summary

Modifier and Type Method and Description
long getEndOffset()

Gets the ending offset.

long getStartOffset()

Gets the starting offset.

void setEndOffset(final long endOffset)

Sets the ending offset.

void setStartOffset(final long startOffset)

Sets the starting offset.

String toString()

Returns the content of the file range as a string.

Constructor Details

FileRange

public FileRange(final long start, final long end)

Creates an instance of the class.

Parameters:

start - A long which represents the starting offset.
end - A long which represents the ending offset.

Method Details

getEndOffset

public long getEndOffset()

Gets the ending offset.

Returns:

A long which represents the ending offset.

getStartOffset

public long getStartOffset()

Gets the starting offset.

Returns:

A long which represents the starting offset.

setEndOffset

public void setEndOffset(final long endOffset)

Sets the ending offset.

Parameters:

endOffset - A long which specifies the ending offset.

setStartOffset

public void setStartOffset(final long startOffset)

Sets the starting offset.

Parameters:

startOffset - A long which specifies the starting offset.

toString

public String toString()

Returns the content of the file range as a string.

Returns:

A String which represents the contents of the file range.

Applies to