Merge branch '2.1.x'

This commit is contained in:
Marcin Grzejszczak
2019-12-31 11:01:23 +01:00
4 changed files with 86 additions and 8 deletions

View File

@@ -54,6 +54,14 @@ public class FromFileProperty implements Serializable {
return byte[].class.equals(this.type) || Byte[].class.equals(this.type);
}
public boolean isJson() {
return this.fileName().endsWith(".json");
}
public boolean isXml() {
return this.fileName().endsWith(".xml");
}
public String asString() {
try {
return new String(asBytes(), this.charset);