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 Closeable
close
in interface AutoCloseable
close
in interface Channel
IOException
public final void disable()
public int read(ByteBuffer buffer) throws IOException
read
in interface ReadableByteChannel
IOException
public final void redirect(ConnectionSecurityProvider provider)
provider
- The provider to redirect to.public int write(ByteBuffer buffer) throws IOException
write
in interface WritableByteChannel
IOException
Copyright 2010-2017 ForgeRock AS.