git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 3.1.4: error handling for traces in Server
[fanfix.git]
/
src
/
be
/
nikiroo
/
utils
/
serial
/
CustomSerializer.java
diff --git
a/src/be/nikiroo/utils/serial/CustomSerializer.java
b/src/be/nikiroo/utils/serial/CustomSerializer.java
index fa03f02e141c5056df9ad8bc89f9d59937500a74..0bafb86f65152755ca7684614622af34e7aec449 100644
(file)
--- a/
src/be/nikiroo/utils/serial/CustomSerializer.java
+++ b/
src/be/nikiroo/utils/serial/CustomSerializer.java
@@
-1,10
+1,12
@@
package be.nikiroo.utils.serial;
package be.nikiroo.utils.serial;
+import java.io.IOException;
+
public abstract class CustomSerializer {
protected abstract String toString(Object value);
public abstract class CustomSerializer {
protected abstract String toString(Object value);
- protected abstract Object fromString(String content);
+ protected abstract Object fromString(String content)
throws IOException
;
protected abstract String getType();
protected abstract String getType();
@@
-30,7
+32,7
@@
public abstract class CustomSerializer {
return true;
}
return true;
}
- public Object decode(String encodedValue) {
+ public Object decode(String encodedValue)
throws IOException
{
return fromString((String) SerialUtils.decode(contentOf(encodedValue)));
}
return fromString((String) SerialUtils.decode(contentOf(encodedValue)));
}