BinaryReadSettings Class

public final class BinaryReadSettings
extends FormatReadSettings

Binary read settings.

Constructor Summary

Constructor Description
BinaryReadSettings()

Creates an instance of BinaryReadSettings class.

Method Summary

Modifier and Type Method and Description
static BinaryReadSettings fromJson(JsonReader jsonReader)

Reads an instance of BinaryReadSettings from the JsonReader.

CompressionReadSettings getCompressionProperties()

Get the compressionProperties property: Compression settings.

String getType()

Get the type property: The read setting type.

BinaryReadSettings setCompressionProperties(CompressionReadSettings compressionProperties)

Set the compressionProperties property: Compression settings.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from FormatReadSettings

Methods inherited from java.lang.Object

Constructor Details

BinaryReadSettings

public BinaryReadSettings()

Creates an instance of BinaryReadSettings class.

Method Details

fromJson

public static BinaryReadSettings fromJson(JsonReader jsonReader)

Reads an instance of BinaryReadSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BinaryReadSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the BinaryReadSettings.

getCompressionProperties

public CompressionReadSettings getCompressionProperties()

Get the compressionProperties property: Compression settings.

Returns:

the compressionProperties value.

getType

public String getType()

Get the type property: The read setting type.

Overrides:

BinaryReadSettings.getType()

Returns:

the type value.

setCompressionProperties

public BinaryReadSettings setCompressionProperties(CompressionReadSettings compressionProperties)

Set the compressionProperties property: Compression settings.

Parameters:

compressionProperties - the compressionProperties value to set.

Returns:

the BinaryReadSettings object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

BinaryReadSettings.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to