private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
InvalidObjectException
- if the object endpoint is
null
ClassNotFoundException
- if class not found.IOException
- if a problem occurs during de-serialization.private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObjectNoData() throws InvalidObjectException
InvalidObjectException
- unconditionallyObjectEndpoint oe
MethodConstraints clientConstraints
null
.MethodConstraints serverConstraints
null
.private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
BasicObjectEndpoint
participates in DGC,
initiates asynchronous DGC activity for it.InvalidObjectException
- if the Endpoint
or
the object identifier is null
ClassNotFoundException
- if class not found.IOException
- if a problem occurs during de-serialization.private void writeObject(ObjectOutputStream out) throws IOException
BasicObjectEndpoint
participates in DGC
and if out
is an instance of ObjectStreamContext
and its context collection contains an
AcknowledgmentSource
, ensures that an AcknowledgmentSource.Listener
is
registered (with the AcknowledgmentSource
) that
will hold a strong reference to this
BasicObjectEndpoint
until the listener's acknowledgmentReceived
method is invoked (or some other
implementation-specific event occurs, such as a timeout
expiration).IOException
- if a problem occurs during serialization.private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
InvalidObjectException
- if the host name is
null
or if the port number is out of the range
1
to 65535
(inclusive)IOException
ClassNotFoundException
private Object readResolve()
String host
HttpEndpoint
connects to.int port
HttpEndpoint
connects to.SocketFactory sf
HttpEndpoint
uses to
create Socket
objects.private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private Object readResolve()
String serverHost
int serverPort
KerberosPrincipal serverPrincipal
SocketFactory csf
KerberosEndpoint
uses
to create java.net.Socket
objects.private Object readResolve()
==
can be used.boolean value
true
for STRONG
, false
for
WEAK
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
serverHost
, port
, and
socketFactory
fields, checks that serverHost
is not null
and port
is in range, and sets
transient fields.InvalidObjectException
- if serverHost
is
null
or port
is out of rangeIOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
serverHost
, port
, and
socketFactory
fields.IOException
int port
String serverHost
SocketFactory socketFactory
null
to use default sockets.private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
serverHost
, port
, and
socketFactory
fields, checks that serverHost
is not null
and port
is in range, and sets
transient fields.InvalidObjectException
- if serverHost
is
null
or port
is out of rangeIOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
serverHost
, port
, and
socketFactory
fields.IOException
int port
String serverHost
SocketFactory socketFactory
null
to use default sockets.private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
InvalidObjectException
- if the host name is
null
or if the port number is out of the range
1
to 65535
(inclusive)IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private Object readResolve()
String host
TcpEndpoint
connects to.int port
TcpEndpoint
connects to.SocketFactory sf
TcpEndpoint
uses to
create Socket
objects.Copyright © 2016–2018. All rights reserved.