]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.common/src/org/simantics/db/common/CommentMetadata.java
Improved subscription CSV export wizard page initial selection handling
[simantics/platform.git] / bundles / org.simantics.db.common / src / org / simantics / db / common / CommentMetadata.java
1 package org.simantics.db.common;
2
3 import java.util.TreeMap;
4
5 import org.simantics.db.Session;
6 import org.simantics.db.common.utils.Logger;
7
8 public class CommentMetadata extends ACommentMetadata {
9     public CommentMetadata(TreeMap<String, byte[]> metadata) {
10         super(metadata);
11     }
12
13     public CommentMetadata(byte[] data) {
14         super(data);
15     }
16
17     public static CommentMetadata deserialise(Session session, byte[] input) {
18         try {
19             return new CommentMetadata(input);
20         } catch (Throwable e) {
21             Logger.defaultLogError(e);
22         }
23         return new CommentMetadata((byte[])null);
24     }
25 }