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

Public Member Functions

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

Package Functions

 FileContent (URI uri)
 

Private Attributes

FileChannel fc = null
 
File fn
 
long length = -1
 
long position = -1
 
String type = null
 

Static Private Attributes

static File ROOT = new File("root")
 

Detailed Description

A Content type that provides for transferring files.

Author
Mark Reinhold
Brad R. Wetmore

Definition at line 52 of file FileContent.java.

Constructor & Destructor Documentation

◆ FileContent()

FileContent.FileContent ( URI  uri)
package

Definition at line 58 of file FileContent.java.

References fn, ROOT, and uri.

Member Function Documentation

◆ length()

long FileContent.length ( )

Implements Content.

Definition at line 84 of file FileContent.java.

References length.

◆ prepare()

void FileContent.prepare ( ) throws IOException

Implements Sendable.

Definition at line 88 of file FileContent.java.

References fc, fn, length, and position.

◆ release()

void FileContent.release ( ) throws IOException

Implements Sendable.

Definition at line 112 of file FileContent.java.

References fc.

◆ send()

boolean FileContent.send ( ChannelIO  cio) throws IOException

Implements Sendable.

Definition at line 95 of file FileContent.java.

References fc, length, and position.

◆ type()

String FileContent.type ( )

Implements Content.

Definition at line 67 of file FileContent.java.

References fn, and type.

Member Data Documentation

◆ fc

FileChannel FileContent.fc = null
private

Definition at line 80 of file FileContent.java.

Referenced by prepare(), release(), and send().

◆ fn

File FileContent.fn
private

Definition at line 56 of file FileContent.java.

Referenced by FileContent(), prepare(), and type().

◆ length

long FileContent.length = -1
private

Definition at line 81 of file FileContent.java.

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

◆ position

long FileContent.position = -1
private

Definition at line 82 of file FileContent.java.

Referenced by prepare(), and send().

◆ ROOT

File FileContent.ROOT = new File("root")
staticprivate

Definition at line 54 of file FileContent.java.

Referenced by FileContent().

◆ type

String FileContent.type = null
private

Definition at line 65 of file FileContent.java.

Referenced by type().


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