|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.io.HtmlImageGallery
The HtmlImageGallery
represents a HTML gallery of
images to create on the file system.
Note that only the file name in the specified image URL in the element is used. Any protocol or leading path is ignored.
Field Summary | |
protected boolean |
create_index
True when to create the index.html. |
protected java.io.File |
folder
The folder to create the gallery. |
protected boolean |
next_anchor
True when to insert the anchor to the next group. |
protected int |
number_of_elements
The number of elements added to this gallery. |
protected java.io.PrintStream |
ps_index
The print stream of index.html. |
Constructor Summary | |
HtmlImageGallery(java.io.File folder)
Constructs a HtmlImageGallery in the specified
folder. |
Method Summary | |
void |
addElement(ImageGalleryElement element)
Adds an image element. |
void |
close()
Closes the gallery. |
void |
open()
Opens the gallery. |
private void |
outputElement(ImageGalleryElement element,
java.lang.String sub_path)
Outputs an image element. |
void |
setCreateIndex(boolean flag)
Sets the flag to to create the index.html. |
void |
setInsertNextAnchor(boolean flag)
Sets the flag to insert the anchor to the next group. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected java.io.File folder
protected boolean create_index
protected java.io.PrintStream ps_index
protected int number_of_elements
protected boolean next_anchor
Constructor Detail |
public HtmlImageGallery(java.io.File folder)
HtmlImageGallery
in the specified
folder.folder
- the folder to create the gallery.Method Detail |
public void setCreateIndex(boolean flag)
flag
- the flag to to create the index.html.public void setInsertNextAnchor(boolean flag)
flag
- the flag to to insert the anchor to the next group.public void open() throws java.io.IOException
public void close() throws java.io.IOException
public void addElement(ImageGalleryElement element) throws java.io.IOException, java.io.FileNotFoundException, UnsupportedBufferTypeException, UnsupportedFileTypeException
element
- the image element.private void outputElement(ImageGalleryElement element, java.lang.String sub_path) throws java.io.IOException, java.io.FileNotFoundException, UnsupportedBufferTypeException, UnsupportedFileTypeException
element
- the image element.sub_path
- the sub folder path.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |