Skip to content

Provide a withReadableByteChannelFactory on TextIO.Read #18578

@kennknowles

Description

@kennknowles

Hi,

I am prototyping a dataflow job that reads from GPG encrypted files. I got this working, but had to jump through some hoops to supply a new "compression" format to TextIO: I basically had to copy a good part of TextIO.Read only to add a withDecompressingChannelFactory method similar to withWritableByteChannelFactory in TextIO.Write.

Would it be possible to add a method withDecompressingChannelFactory or withReadableByteChannelFactory to TextIO.Read to allow users to plug in custom decompression/decryption code?

Imported from Jira BEAM-3262. Original Jira may contain additional context.
Reported by: Tobi19.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions