Skip to content

Exception when reading from Jena with ByteArrayInputStream #36

@jimkont

Description

@jimkont

Great library you got!

But I have a problem when I try to read RDFa from jena from a given string.
I use this snippet to create a stream from the string: ByteArrayInputStream(text.getBytes("UTF8"))
and then try to read with Model.read() but I get a NullPointerException

When I try to dereference directly the web page I have no problem but when I copy-paste the source in a text box and try to read from there I have this issue.

Any hints?

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