File tree Expand file tree Collapse file tree 4 files changed +15
-17
lines changed
org.knime.knip.knimepython/src/org/knime/knip Expand file tree Collapse file tree 4 files changed +15
-17
lines changed Original file line number Diff line number Diff line change 5
5
import org .knime .core .data .DataCell ;
6
6
import org .knime .core .data .filestore .FileStoreFactory ;
7
7
import org .knime .knip .base .data .img .ImgPlusCell ;
8
- import org .knime .knip .serialization .BytesToImgPlusConvertor ;
8
+ import org .knime .knip .serialization .BytesToImgPlusConverter ;
9
9
import org .knime .python .typeextension .Deserializer ;
10
10
import org .knime .python .typeextension .DeserializerFactory ;
11
11
17
17
*/
18
18
public class ImgPlusDeserializer extends DeserializerFactory {
19
19
20
- private BytesToImgPlusConvertor m_convertor ;
20
+ private final BytesToImgPlusConverter m_converter ;
21
21
22
22
public ImgPlusDeserializer () {
23
23
super (ImgPlusCell .TYPE );
24
- m_convertor = new BytesToImgPlusConvertor ();
24
+ m_converter = new BytesToImgPlusConverter ();
25
25
}
26
26
27
27
@ Override
28
28
public Deserializer createDeserializer () {
29
-
30
29
return new Deserializer () {
31
30
32
31
@ Override
33
32
public DataCell deserialize (final byte [] bytes , final FileStoreFactory fileStoreFactory )
34
33
throws IOException {
35
-
36
- return m_convertor .deserialize (bytes , fileStoreFactory );
34
+ return m_converter .deserialize (bytes , fileStoreFactory );
37
35
}
38
36
};
39
37
}
Original file line number Diff line number Diff line change 3
3
import java .io .IOException ;
4
4
5
5
import org .knime .knip .base .data .img .ImgPlusValue ;
6
- import org .knime .knip .serialization .ImgPlusToBytesConvertor ;
6
+ import org .knime .knip .serialization .ImgPlusToBytesConverter ;
7
7
import org .knime .python .typeextension .Serializer ;
8
8
import org .knime .python .typeextension .SerializerFactory ;
9
9
15
15
@ SuppressWarnings ("rawtypes" )
16
16
public class ImgPlusSerializer extends SerializerFactory <ImgPlusValue > {
17
17
18
- private final ImgPlusToBytesConvertor m_convertor ;
18
+ private final ImgPlusToBytesConverter m_converter ;
19
+
19
20
/**
20
21
* Constructor
21
22
*/
22
23
public ImgPlusSerializer () {
23
24
super (ImgPlusValue .class );
24
- m_convertor = new ImgPlusToBytesConvertor ();
25
+ m_converter = new ImgPlusToBytesConverter ();
25
26
}
26
27
27
28
@ Override
28
29
public Serializer <? extends ImgPlusValue <?>> createSerializer () {
29
-
30
30
return new Serializer <ImgPlusValue <?>>() {
31
31
32
32
@ Override
33
33
public byte [] serialize (final ImgPlusValue <?> value ) throws IOException {
34
- return m_convertor .serialize (value );
34
+ return m_converter .serialize (value );
35
35
}
36
36
};
37
37
}
Original file line number Diff line number Diff line change 26
26
* @author Christian Dietz (University of Konstanz)
27
27
*/
28
28
29
- public class BytesToImgPlusConvertor {
29
+ public class BytesToImgPlusConverter {
30
30
31
31
/**
32
32
* ImgOpener to read ImgPlus from stream
@@ -40,7 +40,7 @@ public class BytesToImgPlusConvertor {
40
40
/**
41
41
* Constructor
42
42
*/
43
- public BytesToImgPlusConvertor () {
43
+ public BytesToImgPlusConverter () {
44
44
m_imgOpener = new ImgOpener (ScifioGateway .getSCIFIO ().context ());
45
45
m_scifioConfig = new SCIFIOConfig ();
46
46
m_scifioConfig .groupableSetGroupFiles (false );
Original file line number Diff line number Diff line change 35
35
* @author Christian Dietz (University of Konstanz)
36
36
*
37
37
*/
38
- public class ImgPlusToBytesConvertor {
39
-
38
+ public class ImgPlusToBytesConverter {
39
+
40
40
/**
41
41
* ImgSaver to write ImgPlus to stream as tif
42
42
*/
@@ -48,8 +48,8 @@ public class ImgPlusToBytesConvertor {
48
48
private SCIFIOConfig m_scifioConfig ;
49
49
50
50
private Writer m_writer ;
51
-
52
- public ImgPlusToBytesConvertor () {
51
+
52
+ public ImgPlusToBytesConverter () {
53
53
m_saver = new ImgSaver (ScifioGateway .getSCIFIO ().getContext ());
54
54
m_scifioConfig = new SCIFIOConfig ();
55
55
m_scifioConfig .groupableSetGroupFiles (false );
You can’t perform that action at this time.
0 commit comments