public class WaterMark extends Object
| 构造器和说明 |
|---|
WaterMark(InputStream inputStream) |
WaterMark(Path imagePath) |
WaterMark(String word) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
delete() |
Path |
get() |
String |
getContentType()
content-type
|
String |
getSuffix() |
static WaterMark |
of(InputStream is)
Create a water mark with InputStream image
|
static WaterMark |
of(Path path)
Create a water mark with location image
|
static WaterMark |
of(String mark)
Create a water mark with string value
|
public WaterMark(String word)
public WaterMark(Path imagePath)
public WaterMark(InputStream inputStream) throws IOException
IOExceptionpublic Path get()
public static WaterMark of(String mark)
mark - the mark valuepublic static WaterMark of(Path path)
path - the image location pathpublic static WaterMark of(InputStream is) throws IOException
is - the image InputStreamIOException - if io error occurpublic boolean delete()
public String getSuffix()
public String getContentType()
Copyright © 2022. All rights reserved.