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 55import org .knime .core .data .DataCell ;
66import org .knime .core .data .filestore .FileStoreFactory ;
77import org .knime .knip .base .data .img .ImgPlusCell ;
8- import org .knime .knip .serialization .BytesToImgPlusConvertor ;
8+ import org .knime .knip .serialization .BytesToImgPlusConverter ;
99import org .knime .python .typeextension .Deserializer ;
1010import org .knime .python .typeextension .DeserializerFactory ;
1111
1717 */
1818public class ImgPlusDeserializer extends DeserializerFactory {
1919
20- private BytesToImgPlusConvertor m_convertor ;
20+ private final BytesToImgPlusConverter m_converter ;
2121
2222 public ImgPlusDeserializer () {
2323 super (ImgPlusCell .TYPE );
24- m_convertor = new BytesToImgPlusConvertor ();
24+ m_converter = new BytesToImgPlusConverter ();
2525 }
2626
2727 @ Override
2828 public Deserializer createDeserializer () {
29-
3029 return new Deserializer () {
3130
3231 @ Override
3332 public DataCell deserialize (final byte [] bytes , final FileStoreFactory fileStoreFactory )
3433 throws IOException {
35-
36- return m_convertor .deserialize (bytes , fileStoreFactory );
34+ return m_converter .deserialize (bytes , fileStoreFactory );
3735 }
3836 };
3937 }
Original file line number Diff line number Diff line change 33import java .io .IOException ;
44
55import org .knime .knip .base .data .img .ImgPlusValue ;
6- import org .knime .knip .serialization .ImgPlusToBytesConvertor ;
6+ import org .knime .knip .serialization .ImgPlusToBytesConverter ;
77import org .knime .python .typeextension .Serializer ;
88import org .knime .python .typeextension .SerializerFactory ;
99
1515@ SuppressWarnings ("rawtypes" )
1616public class ImgPlusSerializer extends SerializerFactory <ImgPlusValue > {
1717
18- private final ImgPlusToBytesConvertor m_convertor ;
18+ private final ImgPlusToBytesConverter m_converter ;
19+
1920 /**
2021 * Constructor
2122 */
2223 public ImgPlusSerializer () {
2324 super (ImgPlusValue .class );
24- m_convertor = new ImgPlusToBytesConvertor ();
25+ m_converter = new ImgPlusToBytesConverter ();
2526 }
2627
2728 @ Override
2829 public Serializer <? extends ImgPlusValue <?>> createSerializer () {
29-
3030 return new Serializer <ImgPlusValue <?>>() {
3131
3232 @ Override
3333 public byte [] serialize (final ImgPlusValue <?> value ) throws IOException {
34- return m_convertor .serialize (value );
34+ return m_converter .serialize (value );
3535 }
3636 };
3737 }
Original file line number Diff line number Diff line change 2626 * @author Christian Dietz (University of Konstanz)
2727 */
2828
29- public class BytesToImgPlusConvertor {
29+ public class BytesToImgPlusConverter {
3030
3131 /**
3232 * ImgOpener to read ImgPlus from stream
@@ -40,7 +40,7 @@ public class BytesToImgPlusConvertor {
4040 /**
4141 * Constructor
4242 */
43- public BytesToImgPlusConvertor () {
43+ public BytesToImgPlusConverter () {
4444 m_imgOpener = new ImgOpener (ScifioGateway .getSCIFIO ().context ());
4545 m_scifioConfig = new SCIFIOConfig ();
4646 m_scifioConfig .groupableSetGroupFiles (false );
Original file line number Diff line number Diff line change 3535 * @author Christian Dietz (University of Konstanz)
3636 *
3737 */
38- public class ImgPlusToBytesConvertor {
39-
38+ public class ImgPlusToBytesConverter {
39+
4040 /**
4141 * ImgSaver to write ImgPlus to stream as tif
4242 */
@@ -48,8 +48,8 @@ public class ImgPlusToBytesConvertor {
4848 private SCIFIOConfig m_scifioConfig ;
4949
5050 private Writer m_writer ;
51-
52- public ImgPlusToBytesConvertor () {
51+
52+ public ImgPlusToBytesConverter () {
5353 m_saver = new ImgSaver (ScifioGateway .getSCIFIO ().getContext ());
5454 m_scifioConfig = new SCIFIOConfig ();
5555 m_scifioConfig .groupableSetGroupFiles (false );
You can’t perform that action at this time.
0 commit comments