Crossfire JXClient, Trunk
Public Member Functions | Package Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
StringContent Class Reference
Inheritance diagram for StringContent:
Inheritance graph
Collaboration diagram for StringContent:
Collaboration graph

Public Member Functions

long length ()
 
void prepare ()
 
void release () throws IOException
 
boolean send (ChannelIO cio) throws IOException
 
String type ()
 

Package Functions

 StringContent (CharSequence c)
 
 StringContent (CharSequence c, String t)
 
 StringContent (Exception x)
 

Private Member Functions

void encode ()
 

Private Attributes

ByteBuffer bb = null
 
String content
 
String type
 

Static Private Attributes

static Charset ascii = Charset.forName("US-ASCII")
 

Detailed Description

A Content type that provides for transferring Strings.

Author
Mark Reinhold
Brad R. Wetmore

Definition at line 51 of file StringContent.java.

Constructor & Destructor Documentation

◆ StringContent() [1/3]

StringContent.StringContent ( CharSequence  c,
String  t 
)
package

Definition at line 58 of file StringContent.java.

References content, t, and type.

◆ StringContent() [2/3]

StringContent.StringContent ( CharSequence  c)
package

Definition at line 65 of file StringContent.java.

◆ StringContent() [3/3]

StringContent.StringContent ( Exception  x)
package

Definition at line 69 of file StringContent.java.

References content, and type.

Member Function Documentation

◆ encode()

void StringContent.encode ( )
private

Definition at line 82 of file StringContent.java.

References ascii, bb, and content.

Referenced by length(), and prepare().

Here is the caller graph for this function:

◆ length()

long StringContent.length ( )

Implements Content.

Definition at line 87 of file StringContent.java.

References bb, and encode().

Here is the call graph for this function:

◆ prepare()

void StringContent.prepare ( )

Implements Sendable.

Definition at line 92 of file StringContent.java.

References bb, and encode().

Here is the call graph for this function:

◆ release()

void StringContent.release ( ) throws IOException

Implements Sendable.

Definition at line 105 of file StringContent.java.

◆ send()

boolean StringContent.send ( ChannelIO  cio) throws IOException

Implements Sendable.

Definition at line 97 of file StringContent.java.

References bb.

◆ type()

String StringContent.type ( )

Implements Content.

Definition at line 76 of file StringContent.java.

References type.

Member Data Documentation

◆ ascii

Charset StringContent.ascii = Charset.forName("US-ASCII")
staticprivate

Definition at line 53 of file StringContent.java.

Referenced by encode().

◆ bb

ByteBuffer StringContent.bb = null
private

Definition at line 80 of file StringContent.java.

Referenced by encode(), length(), prepare(), and send().

◆ content

String StringContent.content
private

Definition at line 56 of file StringContent.java.

Referenced by encode(), and StringContent().

◆ type

String StringContent.type
private

Definition at line 55 of file StringContent.java.

Referenced by StringContent(), and type().


The documentation for this class was generated from the following file: