diff --git a/app/src/main/java/lightcontainer/protocol/rules/writer/GetFileOkRule.java b/app/src/main/java/lightcontainer/protocol/rules/writer/GetFileOkRule.java index 48c363f..2f7e66c 100644 --- a/app/src/main/java/lightcontainer/protocol/rules/writer/GetFileOkRule.java +++ b/app/src/main/java/lightcontainer/protocol/rules/writer/GetFileOkRule.java @@ -2,6 +2,7 @@ package lightcontainer.protocol.rules.writer; import lightcontainer.domains.client.Context; import lightcontainer.protocol.ProtocolWriter; +import lightcontainer.protocol.StandardizedDefinitions; import lightcontainer.utils.FileSender; import java.io.IOException; @@ -9,9 +10,12 @@ import java.io.OutputStream; import java.nio.file.Files; import java.nio.file.Path; +import static lightcontainer.protocol.StandardizedDefinitions.FFE_GET_FILE_RESULT_OK; + public class GetFileOkRule extends ProtocolWriter { // Constants - private static final String PATTERN = "^GETFILE_OK ([^ !]{1,20}) ([0-9]{1,10})\r\n$"; + //"^GETFILE_OK ([^ !]{1,20}) ([0-9]{1,10})\r\n$" + private static final String PATTERN = FFE_GET_FILE_RESULT_OK; public static final String NAME = "GETFILE_OK"; // -- params private static final int FILE_NAME = 0; // Index file name hashed