Hello.

I am not new to java, but I am new to this forum and Java 7, and I have a question about how to use the latter.
The new classes for asynchronous IO seem fantastic and I'd like to start using them right away (I have actually been emulating their behaviour with lots of threads doing blocking operations until now), but there is just one problem - I am relying heavily on Java object serialization in my networking classes and I can't seem to figure out how to for example use the new asynchronous behaviour while reading/writing objects.

Sure I can use static methods in the Channels class to create ObjectInputStreams/-OutputStreams from for example an AsynchronousSocketChannel....however. That just produces a standard stream which doesn't have capability to set CompletionHandlers as far as I can tell --> meaning the readobject/writeobject are standard.

What I need is something like a method readObject(attachment, completionhandler)
Any ideas on how I should procede to do this?