Skip to content

Manifest#getInputStream(Reader) inappropriately converts from chars to bytes #21

Closed
@michael-o

Description

@michael-o
    int read;
    while ( ( read = r.read() ) != -1 )
    {
        byteArrayOutputStream.write( read );
    }

A reader (always char-oriented) returns chars (which are compatible with ints) but the stream expects bytes. If a char is bigger than a byte, information is lost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions