This represents an embedded file in a file specification.
Method from org.apache.pdfbox.pdmodel.common.filespecification.PDEmbeddedFile Detail: |
public String getCheckSum() {
return getStream().getEmbeddedString( "Params", "CheckSum" );
}
Get the check sum of the embedded file. |
public Calendar getCreationDate() throws IOException {
return getStream().getEmbeddedDate( "Params", "CreationDate" );
}
Get the creation date of the embedded file. |
public String getMacCreator() {
String retval = null;
COSDictionary params = (COSDictionary)getStream().getDictionaryObject( "Params" );
if( params != null )
{
retval = params.getEmbeddedString( "Mac", "Creator" );
}
return retval;
}
|
public String getMacResFork() {
String retval = null;
COSDictionary params = (COSDictionary)getStream().getDictionaryObject( "Params" );
if( params != null )
{
retval = params.getEmbeddedString( "Mac", "ResFork" );
}
return retval;
}
|
public String getMacSubtype() {
String retval = null;
COSDictionary params = (COSDictionary)getStream().getDictionaryObject( "Params" );
if( params != null )
{
retval = params.getEmbeddedString( "Mac", "Subtype" );
}
return retval;
}
|
public Calendar getModDate() throws IOException {
return getStream().getEmbeddedDate( "Params", "ModDate" );
}
Get the mod date of the embedded file. |
public int getSize() {
return getStream().getEmbeddedInt( "Params", "Size" );
}
Get the size of the embedded file. |
public String getSubtype() {
return getStream().getNameAsString( "Subtype" );
}
Get the subtype(mimetype) for the embedded file. |
public void setCheckSum(String checksum) {
getStream().setEmbeddedString( "Params", "CheckSum", checksum );
}
|
public void setCreationDate(Calendar creation) {
getStream().setEmbeddedDate( "Params", "CreationDate", creation );
}
|
public void setMacCreator(String macCreator) {
COSDictionary params = (COSDictionary)getStream().getDictionaryObject( "Params" );
if( params == null && macCreator != null )
{
params = new COSDictionary();
getStream().setItem( "Params", params );
}
if( params != null )
{
params.setEmbeddedString( "Mac", "Creator", macCreator );
}
}
|
public void setMacResFork(String macResFork) {
COSDictionary params = (COSDictionary)getStream().getDictionaryObject( "Params" );
if( params == null && macResFork != null )
{
params = new COSDictionary();
getStream().setItem( "Params", params );
}
if( params != null )
{
params.setEmbeddedString( "Mac", "ResFork", macResFork);
}
}
|
public void setMacSubtype(String macSubtype) {
COSDictionary params = (COSDictionary)getStream().getDictionaryObject( "Params" );
if( params == null && macSubtype != null )
{
params = new COSDictionary();
getStream().setItem( "Params", params );
}
if( params != null )
{
params.setEmbeddedString( "Mac", "Subtype", macSubtype );
}
}
|
public void setModDate(Calendar mod) {
getStream().setEmbeddedDate( "Params", "ModDate", mod );
}
|
public void setSize(int size) {
getStream().setEmbeddedInt( "Params", "Size", size );
}
Set the size of the embedded file. |
public void setSubtype(String mimeType) {
getStream().setName( "Subtype", mimeType );
}
Set the subtype for this embedded file. This should be a mime type value. Optional. |