Module wicket.bootstrap.extensions
Interface SummernoteStorage
- All Known Implementing Classes:
SummernoteFileStorage
public interface SummernoteStorage
Used to provide different implementations to store images. See example implementation SummernoteFileStorage
- Author:
- Tobias Soloschenko
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]getContent(String imageName) Gets the content of an imagegetId()The storage idvoidwriteContent(String imageName, InputStream inputStream) Writes the content of the image
-
Method Details
-
writeContent
Writes the content of the image- Parameters:
imageName- the image nameinputStream- the input stream of the image
-
getContent
Gets the content of an image- Parameters:
imageName- the image name- Returns:
- the content of the image as byte[]
-
getId
String getId()The storage id- Returns:
- the id of this storage
-