All Categories
 
DatagramSocket Connect() Example

DatagramSocketclass Connect() method example. This example shows you how to use Connect() method.This method Connects the socket to a remote address for this socket.

 
DatagramSocket Close() Example

DatagramSocketclass Close() method example. This example shows you how to use Close() method.This method Closes this datagram socket.

 
Socket getRemoteSocketAddress Example

Socket class getRemoteSocketAddress example.

 
DatagramSocket Bind() Example

DatagramSocketclass Bind() method example. This example shows you how to use Bind() method.This method Binds this DatagramSocket to a specific address & port.

 
Socket getReceiveBufferSize Example

Socket class getReceiveBufferSize example. public int getReceiveBufferSize() throws SocketException Gets the value of the SO_RCVBUF option for this Socket, that is the buffer size used by the platform for input on this Socket

 
Socket getPort Example

Socket class getPort example. public int getPort() Returns the remote port to which this socket is connected.

 
Socket getOutputStream Example

Socket class getOutputStream example. public OutputStream getOutputStream() throws IOException Returns an output stream for this socket. If this socket has an associated channel then the resulting output stream delegates all of its operations to the channel. If the channel is in non-blocking mode then the output stream's write operations will throw an IllegalBlockingModeException.

 
Socket getOOBInline Example

Socket class getOOBInline example. public boolean getOOBInline() throws SocketException Tests if OOBINLINE is enabled.

 
Socket getLocalSocketAddress Example

Socket class getLocalSocketAddress example. public SocketAddress getLocalSocketAddress() Returns the address of the endpoint this socket is bound to, or null if it is not bound yet.

 
Socket getLocalPort Example

Socket class getLocalPort example. public int getLocalPort() Returns the local port to which this socket is bound.

 
Socket getLocalAddress Example

Socket class getLocalAddress example. public InetAddress getLocalAddress() Gets the local address to which the socket is bound.

 
Socket getFormats Example

Socket class getFormats example. public boolean getKeepAlive() throws SocketException Tests if SO_KEEPALIVE is enabled.

 
Java DateFormatSymbols setZoneStrings() Example

Syntax is : public void setZoneStrings(String[][] newZoneStrings)
Method sets time zone strings. The argument must be a two-dimensional array of strings of size n by m, where m is at least 5. Each of the n rows is an entry containing the localized names for a single TimeZone.

 
Java DateFormatSymbols setWeekdays() Example

Syntax is : public void setWeekdays(String[] newWeekdays)
This meethod sets weekday strings to the specified string array. For example: "Sunday", "Monday", etc.

 
Java DateFormatSymbols setShortWeekdays() Example

Syntax is : public void setShortWeekdays(String[] newShortWeekdays)
This meethod sets short weekday strings to the specified string array. For example: "Sun", "Mon", etc.

 
Java DateFormatSymbols setShortMonths() Example

Syntax is : public void setShortMonths(String[] newShortMonths)
This meethod sets short month strings to the specified string array. For example: "Jan", "Feb", etc.

 
Java DateFormatSymbols setMonths() Example

Syntax is : public void setMonths(String[] newMonths)
This meethod sets month strings to the specified string array. For example: "January", "February", etc.

 
Socket getInetAddress Example

Socket class getInetAddress example. public InetAddress getInetAddress() Returns the address to which the socket is connected.

 
Java DateFormatSymbols setLocalPatternChars() Example

Syntax is : public void setLocalPatternChars(String newLocalPatternChars)
This meethod sets localized date-time pattern characters to specified string. For example: 'u', 't', etc.

 
Java DateFormatSymbols setEras() Example

Syntax is : public void setEras(String[] newEras)
This meethod sets era strings to given string array from user . For example: "AD" and "BC".

 
Socket GetInputStream Example

Socket class GetInputStream example. public InputStream getInputStream() throws IOException Returns an input stream for this socket. If this socket has an associated channel then the resulting input stream delegates all of its operations to the channel. If the channel is in non-blocking mode then the input stream's read operations will throw an IllegalBlockingModeException.

 
Java DateFormatSymbols setAmPmStrings() Example

Syntax is : public void setAmPmStrings(String[] newAmpms)
This method sets ampm strings. For example: "AM" and "PM" as per user choice.

 
Java DateFormatSymbols equals() Example

Syntax is : public boolean equals(Object obj)
This method checks that specified object is equal to the this object or not.

 
Socket connect Example

Socket class connect example. public void connect(SocketAddress endpoint, int timeout) throws IOException Connects this socket to the server with a specified timeout value. A timeout of zero is interpreted as an infinite timeout. The connection will then block until established or an error occurs.

 
Socket connect Example

Socket class connect example. public void connect(SocketAddress endpoint) throws IOException Connects this socket to the server.

 
Socket close Example

Socket class close example. public void close() throws IOException Closes this socket. Any thread currently blocked in an I/O operation upon this socket will throw a SocketException. Once a socket has been closed, it is not available for further networking use (i.e. can't be reconnected or rebound). A new socket needs to be created.

 
Socket bind Example

Socket class bind example. public void bind(SocketAddress bindpoint) throws IOException Binds the socket to a local address. If the address is null, then the system will pick up an ephemeral port and a valid local address to bind the socket.

 
InetAddress ToString() Example

InetAddressclass ToString() method example. This example shows you how to use ToString() method.This method Converts this IP address to a String.

 
InetAddress IsSiteLocalAddress() Example

InetAddressclass IsSiteLocalAddress() method example. This example shows you how to use IsSiteLocalAddress() method.This method gives Utility routine to check if the InetAddress is a site local address.

 
InetAddress IsReachable() Example

InetAddressclass IsReachable() method example. This example shows you how to use IsReachable() method.This method Test whether that address is reachable.

 
 1    2    3    4    5    6    7    8    9    10    11    12    13   [14]    15    16    17    18    19    20    21    22    23    24    25    26    27    28    29    30    31    32    33    34    35    36    37    38    39    40    41    42    43    44    45    46    47    48    49    50    51    52    53    54    55    56    57    58    59    60    61    62    63    64    65    66    67    68    69    70    71    72    73    74    75    76    77    78    79    80    81    82    83    84    85    86    87    88    89    90    91    92    93    94    95    96    97    98    99    100    101    102    103    104    105    106    107    108    109    110    111    112    113    114    115    116    117    118    119    120    121    122    123    124    125    126    127    128    129    130    131    132    133    134    135    136    137    138    139    140    141    142    143    144    145    146    147    148    149    150    151    152    153    154    155    156    157    158    159    160    161    162    163    164    165    166    167    168    169    170    171    172    173    174    175    176    177    178    179    180    181    182    183    184    185    186    187    188    189    190    191    192    193    194    195    196    197    198    199    200    201    202    203    204    205    206    207    208    209    210    211    212    213    214    215    216    217    218    219    220    221    222    223    224    225    226    227    228    229    230    231    232    233    234    235    236    237    238    239    240    241    242    243    244    245    246    247    248    249    250    251    252    253    254    255    256    257    258    259    260    261    262    263    264    265    266    267    268    269    270    271    272    273    274    275    276    277    278    279    280    281    282    283    284    285    286    287    288    289    290    291    292    293    294    295    296    297    298    299    300    301    302    303    304    305    306    307    308    309    310    311    312    313    314    315    316    317    318    319    320    321    322    323    324    325    326    327    328    329    330    331    332    333    334    335    336    337    338    339    340    341    342    343    344    345    346    347    348    349    350    351    352    353    354    355    356    357    358    359    360    361    362    363    364    365    366    367    368    369    370    371    372    373    374    375    376    377    378    379    380    381    382    383    384    385    386    387    388    389    390    391    392    393    394    395    396    397    398    399    400    401    402    403    404    405    406    407    408    409    410    411    412    413    414    415    416    417    418    419    420    421    422    423    424    425    426    427    428    429    430    431    432    433    434    435    436    437    438    439    440  
 
 
 
 
 

HOME | COPYRIGHT | CONTACT US