1 25 package org.ofbiz.entity.util; 26 27 import java.io.Serializable ; 28 29 36 public class ByteWrapper implements Serializable { 37 protected byte[] bytes; 38 39 protected ByteWrapper() {} 40 41 public ByteWrapper(byte[] bytes) { 42 this.bytes = bytes; 43 } 44 45 public byte[] getBytes() { 46 return bytes; 47 } 48 49 public byte getByte(int pos) { 50 return bytes[pos]; 51 } 52 53 public int getLength() { 54 return bytes.length; 55 } 56 } 57 | Popular Tags |