|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.lowagie.text.xml.xmp.XmpWriter
With this class you can create an Xmp Stream that can be used for adding Metadata to a PDF Dictionary. Remark that this class doesn't cover the complete XMP specification.
| Field Summary | |
static String |
EXTRASPACE
String used to fill the extra space. |
static String |
UTF16
A possible charset for the XMP. |
static String |
UTF16BE
A possible charset for the XMP. |
static String |
UTF16LE
A possible charset for the XMP. |
static String |
UTF8
A possible charset for the XMP. |
| Constructor Summary | |
XmpWriter(OutputStream os)
Creates an XmpWriter. |
|
XmpWriter(OutputStream os,
Map info)
|
|
XmpWriter(OutputStream os,
PdfDictionary info,
int PdfXConformance)
|
|
XmpWriter(OutputStream os,
String utfEncoding,
int extraSpace)
Creates an XmpWriter. |
|
| Method Summary | |
void |
addRdfDescription(String xmlns,
String content)
Adds an rdf:Description. |
void |
addRdfDescription(XmpSchema s)
Adds an rdf:Description. |
void |
close()
Flushes and closes the XmpWriter. |
void |
setAbout(String about)
|
void |
setReadOnly()
Sets the XMP to read-only |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String UTF8
public static final String UTF16
public static final String UTF16BE
public static final String UTF16LE
public static final String EXTRASPACE
| Constructor Detail |
public XmpWriter(OutputStream os,
String utfEncoding,
int extraSpace)
throws IOException
os - utfEncoding - extraSpace -
IOException
public XmpWriter(OutputStream os)
throws IOException
os -
IOException
public XmpWriter(OutputStream os,
PdfDictionary info,
int PdfXConformance)
throws IOException
os - info -
IOException
public XmpWriter(OutputStream os,
Map info)
throws IOException
os - info -
IOException| Method Detail |
public void setReadOnly()
public void setAbout(String about)
about - The about to set.
public void addRdfDescription(String xmlns,
String content)
throws IOException
xmlns - content -
IOException
public void addRdfDescription(XmpSchema s)
throws IOException
s -
IOException
public void close()
throws IOException
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||