public int readBytes(byte[][] bytes, int len)
throws NotConnectedException{
if (str == null)
throw new NotConnectedException("Input stream was closed");
int actual = 0 ;
if (len <= str.length()) {
String resStr = str.substring(0, len-1) ;
bytes[0] = resStr.getBytes() ;