Mercurial > dive4elements > framework
comparison artifacts/src/main/java/de/intevation/artifacts/ArtifactSerializer.java @ 78:55eefe63a777
Repaired the javadoc stuff for almost all artifact interfaces.
artifacts/trunk@760 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 11 Mar 2010 10:53:59 +0000 |
parents | 48d1a9a082c2 |
children | 78263e910675 |
comparison
equal
deleted
inserted
replaced
77:48d1a9a082c2 | 78:55eefe63a777 |
---|---|
5 * | 5 * |
6 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> | 6 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> |
7 */ | 7 */ |
8 public interface ArtifactSerializer | 8 public interface ArtifactSerializer |
9 { | 9 { |
10 /** | |
11 * Restores an artifact from an array of bytes. | |
12 * @param bytes the persistent representation of the artifact. | |
13 * @return The de-serialized artifact or null if there was an error. | |
14 */ | |
10 Artifact fromBytes(byte [] bytes); | 15 Artifact fromBytes(byte [] bytes); |
16 /** | |
17 * Brings an artifact to a persistent form in form of a byte array. | |
18 * @param artifact The artifact to be serialized. | |
19 * @return the byte array representation of the artifact or null | |
20 * if there was an error. | |
21 */ | |
11 byte [] toBytes(Artifact artifact); | 22 byte [] toBytes(Artifact artifact); |
12 } | 23 } |
13 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: | 24 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: |