Skip to content
Discussion options

You must be logged in to vote

Solved by creating an adapter to Writable from a funcion that writes to an OutputStream:

def writeToOutputStream(out: OutputStream) = ...

class AdapterToWritable extends geny.Writable {
	override def writeBytesTo(os: OutputStream) = writeToOutputStream(os)
}

and then using it:

proc("myproc").call(stdin=new AdapterToWritable())

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lefou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #149 on January 27, 2023 10:35.