Hehe, more questions...

When I'm writing content to resources, I've been using

ValueFactory to wrap an InputStream, and then setting

the jcr:data property of my content resource, and this

works fine.


I have one use case (a preexisting storage abstraction

layer) where I need to write a resource by getting an

OutputStream for the resource, akin to the way

java.nio.file.Files.newOutputStream() works.


Does the Sling Framework provide any way to do this?

I found nothing in either the JCR or the Sling docs, so

I'm planning to create a ResourceOutputStream that

derives from PipedOutputStream and creates a

copy thread, and PipedInputStream to plug into the

Binary value.  If there's already something that supports

this way of writing, I'd prefer to use that though.


Thanks once again!  John

Reply via email to