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
CompressionReadSettings compressionProperties()

Get the compressionProperties property: Compression settings.

static BinaryReadSettings fromJson(JsonReader jsonReader)

Reads an instance of BinaryReadSettings from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The read setting type.

void validate()

Validates the instance.

BinaryReadSettings withCompressionProperties(CompressionReadSettings compressionProperties)

Set the compressionProperties property: Compression settings.

Methods inherited from FormatReadSettings

Methods inherited from java.lang.Object

Constructor Details

BinaryReadSettings

public BinaryReadSettings()

Creates an instance of BinaryReadSettings class.

Method Details

compressionProperties

public CompressionReadSettings compressionProperties()

Get the compressionProperties property: Compression settings.

Returns:

the compressionProperties value.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

BinaryReadSettings.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The read setting type.

Overrides:

BinaryReadSettings.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

BinaryReadSettings.validate()

withCompressionProperties

public BinaryReadSettings withCompressionProperties(CompressionReadSettings compressionProperties)

Set the compressionProperties property: Compression settings.

Parameters:

compressionProperties - the compressionProperties value to set.

Returns:

the BinaryReadSettings object itself.

Applies to