org.sourcejammer.util
Class SJFileDataSource

java.lang.Object
  |
  +--javax.activation.FileDataSource
        |
        +--org.sourcejammer.util.SJFileDataSource
All Implemented Interfaces:
javax.activation.DataSource

public class SJFileDataSource
extends javax.activation.FileDataSource

Title: $FileName: SJFileDataSource.java$

Version:
$VerNum: 1$
Author:
$AuthorName: Rob MacGrogan$

$Description: FileDataSource that always uses application/octet-stream mime type.$
$KeyWordsOff: $


Field Summary
private static java.lang.String BINARY_TYPE
           
 
Fields inherited from class javax.activation.FileDataSource
 
Constructor Summary
SJFileDataSource(java.io.File file)
           
SJFileDataSource(java.lang.String name)
           
 
Method Summary
 java.lang.String getContentType()
          always returns application/octet-stream
 
Methods inherited from class javax.activation.FileDataSource
getFile, getInputStream, getName, getOutputStream, setFileTypeMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BINARY_TYPE

private static final java.lang.String BINARY_TYPE
See Also:
Constant Field Values
Constructor Detail

SJFileDataSource

public SJFileDataSource(java.io.File file)

SJFileDataSource

public SJFileDataSource(java.lang.String name)
Method Detail

getContentType

public java.lang.String getContentType()
always returns application/octet-stream

Specified by:
getContentType in interface javax.activation.DataSource
Overrides:
getContentType in class javax.activation.FileDataSource


Copyright 2003 Soucejammer project.