Exemple #1
0
 private EzyMessageHeader newHeader(byte[] content)
 {
     return(EzyMessageHeaderBuilder.newInstance()
            .setBigSize(isBigMessage(content))
            .setEncrypted(false)
            .setCompressed(false)
            .build());
 }
Exemple #2
0
 public EzyMessageHeader read(byte header)
 {
     return(EzyMessageHeaderBuilder.newInstance()
            .setBigSize(readBigSize(header))
            .setEncrypted(readEncrypted(header))
            .setCompressed(readCompressed(header))
            .setText(readText(header))
            .build());
 }
 public EzyMessageBuilder setHeader(EzyMessageHeaderBuilder buider)
 {
     return(setHeader(buider.build()));
 }