Class AbstractChannel
- java.lang.Object
-
- io.netty.util.DefaultAttributeMap
-
- io.netty.channel.AbstractChannel
-
- All Implemented Interfaces:
Channel
,ChannelOutboundInvoker
,AttributeMap
,Comparable<Channel>
- Direct Known Subclasses:
AbstractEpollServerChannel
,AbstractEpollStreamChannel
,AbstractKQueueServerChannel
,AbstractKQueueStreamChannel
,AbstractNioChannel
,AbstractOioChannel
,AbstractServerChannel
,EmbeddedChannel
,EpollDatagramChannel
,EpollDomainDatagramChannel
,KQueueDatagramChannel
,KQueueDomainDatagramChannel
,LocalChannel
public abstract class AbstractChannel extends DefaultAttributeMap implements Channel
A skeletalChannel
implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
AbstractChannel.AbstractUnsafe
Channel.Unsafe
implementation which sub-classes must extend and use.-
Nested classes/interfaces inherited from interface io.netty.channel.Channel
Channel.Unsafe
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractChannel(Channel parent)
Creates a new instance.protected
AbstractChannel(Channel parent, ChannelId id)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ByteBufAllocator
alloc()
Return the assignedByteBufAllocator
which will be used to allocateByteBuf
s.ChannelFuture
bind(SocketAddress localAddress)
Request to bind to the givenSocketAddress
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.ChannelFuture
bind(SocketAddress localAddress, ChannelPromise promise)
Request to bind to the givenSocketAddress
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.long
bytesBeforeUnwritable()
Get how many bytes can be written untilChannel.isWritable()
returnsfalse
.long
bytesBeforeWritable()
Get how many bytes must be drained from underlying buffers untilChannel.isWritable()
returnstrue
.ChannelFuture
close()
Request to close theChannel
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.ChannelFuture
close(ChannelPromise promise)
Request to close theChannel
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.ChannelFuture
closeFuture()
Returns theChannelFuture
which will be notified when this channel is closed.int
compareTo(Channel o)
ChannelFuture
connect(SocketAddress remoteAddress)
Request to connect to the givenSocketAddress
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.ChannelFuture
connect(SocketAddress remoteAddress, ChannelPromise promise)
Request to connect to the givenSocketAddress
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.ChannelFuture
connect(SocketAddress remoteAddress, SocketAddress localAddress)
Request to connect to the givenSocketAddress
while bind to the localAddress and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.ChannelFuture
connect(SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise)
Request to connect to the givenSocketAddress
while bind to the localAddress and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.ChannelFuture
deregister()
Request to deregister from the previous assignedEventExecutor
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.ChannelFuture
deregister(ChannelPromise promise)
Request to deregister from the previous assignedEventExecutor
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.ChannelFuture
disconnect()
Request to disconnect from the remote peer and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.ChannelFuture
disconnect(ChannelPromise promise)
Request to disconnect from the remote peer and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.protected abstract void
doBeginRead()
Schedule a read operation.protected abstract void
doBind(SocketAddress localAddress)
Bind theChannel
to theSocketAddress
protected abstract void
doClose()
Close theChannel
protected void
doDeregister()
protected abstract void
doDisconnect()
Disconnect thisChannel
from its remote peerprotected void
doRegister()
protected void
doShutdownOutput()
Called when conditions justify shutting down the output portion of the channel.protected abstract void
doWrite(ChannelOutboundBuffer in)
Flush the content of the given buffer to the remote peer.boolean
equals(Object o)
Returnstrue
if and only if the specified object is identical with this channel (i.e:this == o
).EventLoop
eventLoop()
protected Object
filterOutboundMessage(Object msg)
Invoked when a new message is added to aChannelOutboundBuffer
of thisAbstractChannel
, so that theChannel
implementation converts the message to another.Channel
flush()
Request to flush all pending messages via this ChannelOutboundInvoker.int
hashCode()
Returns the ID of this channel.ChannelId
id()
Returns the globally unique identifier of thisChannel
.protected void
invalidateLocalAddress()
Deprecated.no use-case for this.protected void
invalidateRemoteAddress()
Deprecated.no use-case for this.protected abstract boolean
isCompatible(EventLoop loop)
Returntrue
if the givenEventLoop
is compatible with this instance.boolean
isRegistered()
boolean
isWritable()
Returnstrue
if and only if the I/O thread will perform the requested write operation immediately.SocketAddress
localAddress()
Returns the local address where this channel is bound to.protected abstract SocketAddress
localAddress0()
Returns theSocketAddress
which is bound locally.protected int
maxMessagesPerWrite()
protected DefaultChannelPipeline
newChannelPipeline()
Returns a newDefaultChannelPipeline
instance.ChannelFuture
newFailedFuture(Throwable cause)
Create a newChannelFuture
which is marked as failed already.protected ChannelId
newId()
Returns a newDefaultChannelId
instance.ChannelProgressivePromise
newProgressivePromise()
Return an newChannelProgressivePromise
ChannelPromise
newPromise()
Return a newChannelPromise
.ChannelFuture
newSucceededFuture()
Create a newChannelFuture
which is marked as succeeded already.protected abstract AbstractChannel.AbstractUnsafe
newUnsafe()
Create a newAbstractChannel.AbstractUnsafe
instance which will be used for the life-time of theChannel
Channel
parent()
Returns the parent of this channel.ChannelPipeline
pipeline()
Return the assignedChannelPipeline
.Channel
read()
Request to Read data from theChannel
into the first inbound buffer, triggers anChannelInboundHandler.channelRead(ChannelHandlerContext, Object)
event if data was read, and triggers achannelReadComplete
event so the handler can decide to continue reading.SocketAddress
remoteAddress()
Returns the remote address where this channel is connected to.protected abstract SocketAddress
remoteAddress0()
Return theSocketAddress
which theChannel
is connected to.String
toString()
Returns theString
representation of this channel.Channel.Unsafe
unsafe()
Returns an internal-use-only object that provides unsafe operations.protected void
validateFileRegion(DefaultFileRegion region, long position)
ChannelPromise
voidPromise()
Return a special ChannelPromise which can be reused for different operations.ChannelFuture
write(Object msg)
Request to write a message via thisChannelHandlerContext
through theChannelPipeline
.ChannelFuture
write(Object msg, ChannelPromise promise)
Request to write a message via thisChannelHandlerContext
through theChannelPipeline
.ChannelFuture
writeAndFlush(Object msg)
Shortcut for callChannelOutboundInvoker.write(Object)
andChannelOutboundInvoker.flush()
.ChannelFuture
writeAndFlush(Object msg, ChannelPromise promise)
Shortcut for callChannelOutboundInvoker.write(Object, ChannelPromise)
andChannelOutboundInvoker.flush()
.-
Methods inherited from class io.netty.util.DefaultAttributeMap
attr, hasAttr
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty.util.AttributeMap
attr, hasAttr
-
-
-
-
Constructor Detail
-
AbstractChannel
protected AbstractChannel(Channel parent)
Creates a new instance.- Parameters:
parent
- the parent of this channel.null
if there's no parent.
-
-
Method Detail
-
maxMessagesPerWrite
protected final int maxMessagesPerWrite()
-
id
public final ChannelId id()
Description copied from interface:Channel
Returns the globally unique identifier of thisChannel
.
-
newId
protected ChannelId newId()
Returns a newDefaultChannelId
instance. Subclasses may override this method to assign customChannelId
s toChannel
s that use theAbstractChannel(Channel)
constructor.
-
newChannelPipeline
protected DefaultChannelPipeline newChannelPipeline()
Returns a newDefaultChannelPipeline
instance.
-
isWritable
public boolean isWritable()
Description copied from interface:Channel
Returnstrue
if and only if the I/O thread will perform the requested write operation immediately. Any write requests made when this method returnsfalse
are queued until the I/O thread is ready to process the queued write requests.- Specified by:
isWritable
in interfaceChannel
-
bytesBeforeUnwritable
public long bytesBeforeUnwritable()
Description copied from interface:Channel
Get how many bytes can be written untilChannel.isWritable()
returnsfalse
. This quantity will always be non-negative. IfChannel.isWritable()
isfalse
then 0.- Specified by:
bytesBeforeUnwritable
in interfaceChannel
-
bytesBeforeWritable
public long bytesBeforeWritable()
Description copied from interface:Channel
Get how many bytes must be drained from underlying buffers untilChannel.isWritable()
returnstrue
. This quantity will always be non-negative. IfChannel.isWritable()
istrue
then 0.- Specified by:
bytesBeforeWritable
in interfaceChannel
-
parent
public Channel parent()
Description copied from interface:Channel
Returns the parent of this channel.
-
pipeline
public ChannelPipeline pipeline()
Description copied from interface:Channel
Return the assignedChannelPipeline
.
-
alloc
public ByteBufAllocator alloc()
Description copied from interface:Channel
Return the assignedByteBufAllocator
which will be used to allocateByteBuf
s.
-
localAddress
public SocketAddress localAddress()
Description copied from interface:Channel
Returns the local address where this channel is bound to. The returnedSocketAddress
is supposed to be down-cast into more concrete type such asInetSocketAddress
to retrieve the detailed information.- Specified by:
localAddress
in interfaceChannel
- Returns:
- the local address of this channel.
null
if this channel is not bound.
-
invalidateLocalAddress
@Deprecated protected void invalidateLocalAddress()
Deprecated.no use-case for this.
-
remoteAddress
public SocketAddress remoteAddress()
Description copied from interface:Channel
Returns the remote address where this channel is connected to. The returnedSocketAddress
is supposed to be down-cast into more concrete type such asInetSocketAddress
to retrieve the detailed information.- Specified by:
remoteAddress
in interfaceChannel
- Returns:
- the remote address of this channel.
null
if this channel is not connected. If this channel is not connected but it can receive messages from arbitrary remote addresses (e.g.DatagramChannel
, useDefaultAddressedEnvelope.recipient()
to determine the origination of the received message as this method will returnnull
.
-
invalidateRemoteAddress
@Deprecated protected void invalidateRemoteAddress()
Deprecated.no use-case for this.
-
isRegistered
public boolean isRegistered()
Description copied from interface:Channel
- Specified by:
isRegistered
in interfaceChannel
-
bind
public ChannelFuture bind(SocketAddress localAddress)
Description copied from interface:ChannelOutboundInvoker
Request to bind to the givenSocketAddress
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.This will result in having the
ChannelOutboundHandler.bind(ChannelHandlerContext, SocketAddress, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
bind
in interfaceChannelOutboundInvoker
-
connect
public ChannelFuture connect(SocketAddress remoteAddress)
Description copied from interface:ChannelOutboundInvoker
Request to connect to the givenSocketAddress
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.If the connection fails because of a connection timeout, the
ChannelFuture
will get failed with aConnectTimeoutException
. If it fails because of connection refused aConnectException
will be used.This will result in having the
ChannelOutboundHandler.connect(ChannelHandlerContext, SocketAddress, SocketAddress, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
connect
in interfaceChannelOutboundInvoker
-
connect
public ChannelFuture connect(SocketAddress remoteAddress, SocketAddress localAddress)
Description copied from interface:ChannelOutboundInvoker
Request to connect to the givenSocketAddress
while bind to the localAddress and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.This will result in having the
ChannelOutboundHandler.connect(ChannelHandlerContext, SocketAddress, SocketAddress, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
connect
in interfaceChannelOutboundInvoker
-
disconnect
public ChannelFuture disconnect()
Description copied from interface:ChannelOutboundInvoker
Request to disconnect from the remote peer and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.This will result in having the
ChannelOutboundHandler.disconnect(ChannelHandlerContext, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
disconnect
in interfaceChannelOutboundInvoker
-
close
public ChannelFuture close()
Description copied from interface:ChannelOutboundInvoker
Request to close theChannel
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error. After it is closed it is not possible to reuse it again.This will result in having the
ChannelOutboundHandler.close(ChannelHandlerContext, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
close
in interfaceChannelOutboundInvoker
-
deregister
public ChannelFuture deregister()
Description copied from interface:ChannelOutboundInvoker
Request to deregister from the previous assignedEventExecutor
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.This will result in having the
ChannelOutboundHandler.deregister(ChannelHandlerContext, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
deregister
in interfaceChannelOutboundInvoker
-
flush
public Channel flush()
Description copied from interface:ChannelOutboundInvoker
Request to flush all pending messages via this ChannelOutboundInvoker.- Specified by:
flush
in interfaceChannel
- Specified by:
flush
in interfaceChannelOutboundInvoker
-
bind
public ChannelFuture bind(SocketAddress localAddress, ChannelPromise promise)
Description copied from interface:ChannelOutboundInvoker
Request to bind to the givenSocketAddress
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error. The givenChannelPromise
will be notified.This will result in having the
ChannelOutboundHandler.bind(ChannelHandlerContext, SocketAddress, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
bind
in interfaceChannelOutboundInvoker
-
connect
public ChannelFuture connect(SocketAddress remoteAddress, ChannelPromise promise)
Description copied from interface:ChannelOutboundInvoker
Request to connect to the givenSocketAddress
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error. The givenChannelFuture
will be notified.If the connection fails because of a connection timeout, the
ChannelFuture
will get failed with aConnectTimeoutException
. If it fails because of connection refused aConnectException
will be used.This will result in having the
ChannelOutboundHandler.connect(ChannelHandlerContext, SocketAddress, SocketAddress, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
connect
in interfaceChannelOutboundInvoker
-
connect
public ChannelFuture connect(SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise)
Description copied from interface:ChannelOutboundInvoker
Request to connect to the givenSocketAddress
while bind to the localAddress and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error. The givenChannelPromise
will be notified and also returned.This will result in having the
ChannelOutboundHandler.connect(ChannelHandlerContext, SocketAddress, SocketAddress, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
connect
in interfaceChannelOutboundInvoker
-
disconnect
public ChannelFuture disconnect(ChannelPromise promise)
Description copied from interface:ChannelOutboundInvoker
Request to disconnect from the remote peer and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error. The givenChannelPromise
will be notified.This will result in having the
ChannelOutboundHandler.disconnect(ChannelHandlerContext, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
disconnect
in interfaceChannelOutboundInvoker
-
close
public ChannelFuture close(ChannelPromise promise)
Description copied from interface:ChannelOutboundInvoker
Request to close theChannel
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error. After it is closed it is not possible to reuse it again. The givenChannelPromise
will be notified.This will result in having the
ChannelOutboundHandler.close(ChannelHandlerContext, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
close
in interfaceChannelOutboundInvoker
-
deregister
public ChannelFuture deregister(ChannelPromise promise)
Description copied from interface:ChannelOutboundInvoker
Request to deregister from the previous assignedEventExecutor
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error. The givenChannelPromise
will be notified.This will result in having the
ChannelOutboundHandler.deregister(ChannelHandlerContext, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
deregister
in interfaceChannelOutboundInvoker
-
read
public Channel read()
Description copied from interface:ChannelOutboundInvoker
Request to Read data from theChannel
into the first inbound buffer, triggers anChannelInboundHandler.channelRead(ChannelHandlerContext, Object)
event if data was read, and triggers achannelReadComplete
event so the handler can decide to continue reading. If there's a pending read operation already, this method does nothing.This will result in having the
ChannelOutboundHandler.read(ChannelHandlerContext)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
read
in interfaceChannel
- Specified by:
read
in interfaceChannelOutboundInvoker
-
write
public ChannelFuture write(Object msg)
Description copied from interface:ChannelOutboundInvoker
Request to write a message via thisChannelHandlerContext
through theChannelPipeline
. This method will not request to actual flush, so be sure to callChannelOutboundInvoker.flush()
once you want to request to flush all pending data to the actual transport.- Specified by:
write
in interfaceChannelOutboundInvoker
-
write
public ChannelFuture write(Object msg, ChannelPromise promise)
Description copied from interface:ChannelOutboundInvoker
Request to write a message via thisChannelHandlerContext
through theChannelPipeline
. This method will not request to actual flush, so be sure to callChannelOutboundInvoker.flush()
once you want to request to flush all pending data to the actual transport.- Specified by:
write
in interfaceChannelOutboundInvoker
-
writeAndFlush
public ChannelFuture writeAndFlush(Object msg)
Description copied from interface:ChannelOutboundInvoker
Shortcut for callChannelOutboundInvoker.write(Object)
andChannelOutboundInvoker.flush()
.- Specified by:
writeAndFlush
in interfaceChannelOutboundInvoker
-
writeAndFlush
public ChannelFuture writeAndFlush(Object msg, ChannelPromise promise)
Description copied from interface:ChannelOutboundInvoker
Shortcut for callChannelOutboundInvoker.write(Object, ChannelPromise)
andChannelOutboundInvoker.flush()
.- Specified by:
writeAndFlush
in interfaceChannelOutboundInvoker
-
newPromise
public ChannelPromise newPromise()
Description copied from interface:ChannelOutboundInvoker
Return a newChannelPromise
.- Specified by:
newPromise
in interfaceChannelOutboundInvoker
-
newProgressivePromise
public ChannelProgressivePromise newProgressivePromise()
Description copied from interface:ChannelOutboundInvoker
Return an newChannelProgressivePromise
- Specified by:
newProgressivePromise
in interfaceChannelOutboundInvoker
-
newSucceededFuture
public ChannelFuture newSucceededFuture()
Description copied from interface:ChannelOutboundInvoker
Create a newChannelFuture
which is marked as succeeded already. SoFuture.isSuccess()
will returntrue
. AllFutureListener
added to it will be notified directly. Also every call of blocking methods will just return without blocking.- Specified by:
newSucceededFuture
in interfaceChannelOutboundInvoker
-
newFailedFuture
public ChannelFuture newFailedFuture(Throwable cause)
Description copied from interface:ChannelOutboundInvoker
Create a newChannelFuture
which is marked as failed already. SoFuture.isSuccess()
will returnfalse
. AllFutureListener
added to it will be notified directly. Also every call of blocking methods will just return without blocking.- Specified by:
newFailedFuture
in interfaceChannelOutboundInvoker
-
closeFuture
public ChannelFuture closeFuture()
Description copied from interface:Channel
Returns theChannelFuture
which will be notified when this channel is closed. This method always returns the same future instance.- Specified by:
closeFuture
in interfaceChannel
-
unsafe
public Channel.Unsafe unsafe()
Description copied from interface:Channel
Returns an internal-use-only object that provides unsafe operations.
-
newUnsafe
protected abstract AbstractChannel.AbstractUnsafe newUnsafe()
Create a newAbstractChannel.AbstractUnsafe
instance which will be used for the life-time of theChannel
-
hashCode
public final int hashCode()
Returns the ID of this channel.
-
equals
public final boolean equals(Object o)
Returnstrue
if and only if the specified object is identical with this channel (i.e:this == o
).
-
compareTo
public final int compareTo(Channel o)
- Specified by:
compareTo
in interfaceComparable<Channel>
-
toString
public String toString()
Returns theString
representation of this channel. The returned string contains the ID, local address, and remote address of this channel for easier identification.
-
voidPromise
public final ChannelPromise voidPromise()
Description copied from interface:ChannelOutboundInvoker
Return a special ChannelPromise which can be reused for different operations.It's only supported to use it for
ChannelOutboundInvoker.write(Object, ChannelPromise)
.Be aware that the returned
Be aware this is an expert feature and should be used with care!ChannelPromise
will not support most operations and should only be used if you want to save an object allocation for every write operation. You will not be able to detect if the operation was complete, only if it failed as the implementation will callChannelPipeline.fireExceptionCaught(Throwable)
in this case.- Specified by:
voidPromise
in interfaceChannelOutboundInvoker
-
isCompatible
protected abstract boolean isCompatible(EventLoop loop)
Returntrue
if the givenEventLoop
is compatible with this instance.
-
localAddress0
protected abstract SocketAddress localAddress0()
Returns theSocketAddress
which is bound locally.
-
remoteAddress0
protected abstract SocketAddress remoteAddress0()
Return theSocketAddress
which theChannel
is connected to.
-
doRegister
protected void doRegister() throws Exception
Is called after theChannel
is registered with itsEventLoop
as part of the register process. Sub-classes may override this method- Throws:
Exception
-
doBind
protected abstract void doBind(SocketAddress localAddress) throws Exception
Bind theChannel
to theSocketAddress
- Throws:
Exception
-
doDisconnect
protected abstract void doDisconnect() throws Exception
Disconnect thisChannel
from its remote peer- Throws:
Exception
-
doShutdownOutput
@UnstableApi protected void doShutdownOutput() throws Exception
Called when conditions justify shutting down the output portion of the channel. This may happen if a write operation throws an exception.- Throws:
Exception
-
doBeginRead
protected abstract void doBeginRead() throws Exception
Schedule a read operation.- Throws:
Exception
-
doWrite
protected abstract void doWrite(ChannelOutboundBuffer in) throws Exception
Flush the content of the given buffer to the remote peer.- Throws:
Exception
-
filterOutboundMessage
protected Object filterOutboundMessage(Object msg) throws Exception
Invoked when a new message is added to aChannelOutboundBuffer
of thisAbstractChannel
, so that theChannel
implementation converts the message to another. (e.g. heap buffer -> direct buffer)- Throws:
Exception
-
validateFileRegion
protected void validateFileRegion(DefaultFileRegion region, long position) throws IOException
- Throws:
IOException
-
-