Пример #1
0
 public void setState(InputStream istream) throws Exception {
   super.setState(istream);
   byte[] payload = new byte[4];
   istream.read(payload);
 }
Пример #2
0
 public void getState(OutputStream ostream) throws Exception {
   super.getState(ostream);
   byte[] payload = {'b', 'e', 'l', 'a'};
   ostream.write(payload);
 }