juju.reattore.io.impl
Class SourceHelper

java.lang.Object
  |
  +--juju.reattore.io.impl.SourceHelper

public class SourceHelper
extends java.lang.Object

Helper methods that transform sources.


Constructor Summary
SourceHelper()
           
 
Method Summary
static java.nio.ByteBuffer asByteBuffer(ByteSource in)
          Return a source as a NIO ByteBuffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceHelper

public SourceHelper()
Method Detail

asByteBuffer

public static java.nio.ByteBuffer asByteBuffer(ByteSource in)
                                        throws java.io.IOException
Return a source as a NIO ByteBuffer.

Parameters:
in - The source to wrap.
Returns:
The source as a byte buffer.
Throws:
java.io.IOException - on error.


Copyright © 2002-2003 Michael Hope. All Rights Reserved.