public class ImageLinkReader
extends java.lang.Object
ImageLink
object. However there are numerous legacy formats of image links which can also be read by this reader.Constructor and Description |
---|
ImageLinkReader() |
Modifier and Type | Method and Description |
---|---|
ImageLink |
create(java.lang.String file)
Creates a new image link pointing to a file on the current document
|
ImageLink |
create(java.lang.String doc,
java.lang.String file)
Creates a new image link pointing to a file an any document
|
ImageLink |
read(java.util.List<java.lang.String> itemValues)
Reads an image link from an item value list.
|
java.lang.String |
write(ImageLink ili)
Writes an image link, always in XML format
|
public ImageLink create(java.lang.String file)
file
- The name of the filepublic ImageLink create(java.lang.String doc, java.lang.String file)
doc
- The name/key of the document containing the file, either name of a file container or content key of a content documentfile
- The name of the filepublic ImageLink read(java.util.List<java.lang.String> itemValues)
itemValues
- The item value list. This should be the content of any item, read as list.public java.lang.String write(ImageLink ili)
ili
- The image link