Replacing Commons vfs by nio. Tests passing
This commit is contained in:
parent
f097dc8f70
commit
11552b6a6f
@ -15,7 +15,6 @@
|
||||
*/
|
||||
package inr.numass.server;
|
||||
|
||||
import hep.dataforge.data.binary.Binary;
|
||||
import hep.dataforge.exceptions.StorageException;
|
||||
import hep.dataforge.io.envelopes.Envelope;
|
||||
import hep.dataforge.io.envelopes.EnvelopeBuilder;
|
||||
@ -169,7 +168,7 @@ public class NumassRun implements Metoid, Responder {
|
||||
String fileName = message.meta().getString("name")
|
||||
.replace(NumassStorage.NUMASS_ZIP_EXTENSION, "");// removing .nm.zip if it is present
|
||||
if (storage instanceof NumassStorage) {
|
||||
((NumassStorage) storage).pushNumassData(filePath, fileName, Binary.readToBuffer(message.getData()));
|
||||
((NumassStorage) storage).pushNumassData(filePath, fileName, message.getData().getBuffer());
|
||||
} else {
|
||||
throw new StorageException("Storage does not support numass point push");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user