|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsg.edu.nyp.drmPublisher.DMFile
| Constructor Summary | |
DMFile(boolean binaryEncoding,
java.io.File contentFile)
Build a dm file handling Forward Lock for a specified file. |
|
DMFile(java.io.File contentFile)
A basic constructor. |
|
| Method Summary | |
java.io.File |
generateDMFile(java.lang.String prefix)
Write the DMFile described by this DMFile object. |
java.io.File |
generateDMFile(java.lang.String prefix,
java.lang.String path)
Write the DMFile described by this DMFile object. |
java.lang.String |
getBoundaryString()
|
java.io.File |
getContentFile()
Provide the file handled by this DMFile object. |
java.lang.String |
getContentType()
Give the MIME content type handled by the DMFile object. |
boolean |
isBinaryEncoding()
Tell whether the output file will be binary encoded or not. |
boolean |
isHasBeenWritten()
Giev an indication about this DMFile .dm file generation. |
void |
setBinaryEncoding(boolean b)
Set the encoding. |
boolean |
setBoundaryString(java.lang.String string)
Set the BoundaryString. |
void |
setContentType(java.lang.String string)
Set the contentType |
void |
setRandomBoundaryString()
Set a random boundaryString. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DMFile(boolean binaryEncoding,
java.io.File contentFile)
binaryEncoding - To select binary or Base64 encoding.contentFile - The file to be wrappedpublic DMFile(java.io.File contentFile)
contentFile - the file to be managed by this drm Object.| Method Detail |
public java.io.File generateDMFile(java.lang.String prefix,
java.lang.String path)
throws java.io.IOException
prefix - the prefix to be append to the output filenamepath - the directory where the file will be created
java.io.IOException - if an I/O Exception occurs.
public java.io.File generateDMFile(java.lang.String prefix)
throws java.io.IOException
prefix - the prefix to be append to the output filename
java.io.IOException - if an I/O Exception occurs.public boolean isBinaryEncoding()
true if the file will be bynary encoded, else base64encoding will be used.public java.lang.String getContentType()
public java.io.File getContentFile()
public void setBinaryEncoding(boolean b)
b - the mode to be setpublic void setContentType(java.lang.String string)
string - the MIME contentType to set.public boolean isHasBeenWritten()
true if the .dm file has been at least once generated, false else.public void setRandomBoundaryString()
public java.lang.String getBoundaryString()
public boolean setBoundaryString(java.lang.String string)
string - the String to set
true if the string is a RFC2046 conform boundary String, false in other cases.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||