Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.javax.net.ssl.provider.Extension.Value
gnu.javax.net.ssl.provider.MaxFragmentLength
public class MaxFragmentLength
extends Extension.Value
Field Summary | |
static MaxFragmentLength | |
static MaxFragmentLength | |
static MaxFragmentLength | |
static MaxFragmentLength |
Method Summary | |
ByteBuffer |
|
int |
|
int |
|
int | |
String |
|
String |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public int length()
Returns the total length, in bytes, of this structure.
- Specified by:
- length in interface Constructed
- Returns:
- The length of this structure.
public String toString()
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it intoSystem.out.println()
and such. It is typical, but not required, to ensure that this method never completes abruptly with aRuntimeException
. This method will be called when performing string concatenation with this object. If the result isnull
, string concatenation will instead use"null"
. The default implementation returnsgetClass().getName() + "@" + Integer.toHexString(hashCode())
.
- Returns:
- the String representing this Object, which may be null
- See Also:
getClass()
,Object.hashCode()
,Class.getName()
,Integer.toHexString(int)
public String toString(String prefix)
Returns a printable representation of this structure, with the given prefix prepended to each line.
- Specified by:
- toString in interface Constructed
- Parameters:
prefix
- The prefix to prepend to each line of the output. This value may benull
.
- Returns:
- A printable representation of this structure.