public class RedirectingByteChannel extends Object implements ByteChannel
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
disable()
Disable redirection.
|
static RedirectingByteChannel |
getRedirectingByteChannel(ByteChannel bc)
Create an instance of a redirecting byte channel using the specified byte
channel as the child.
|
boolean |
isOpen() |
int |
read(ByteBuffer buffer) |
void |
redirect(ConnectionSecurityProvider provider)
Redirects a byte channel to a byte channel associated with the specified
provider.
|
int |
write(ByteBuffer buffer) |
public static RedirectingByteChannel getRedirectingByteChannel(ByteChannel bc)
bc - A byte channel to use as the child.public void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionpublic final void disable()
public int read(ByteBuffer buffer) throws IOException
read in interface ReadableByteChannelIOExceptionpublic final void redirect(ConnectionSecurityProvider provider)
provider - The provider to redirect to.public int write(ByteBuffer buffer) throws IOException
write in interface WritableByteChannelIOExceptionCopyright © 2010-2015 ForgeRock AS. All Rights Reserved.