private int writeShort(String value,int offset,int end) throws IOException {
  int ch;
  OutputStreamWithBuffer os=_os;
  byte[] buffer=os.buffer();
  int bOffset=os.offset();
  end=Math.min(end,offset + buffer.length - bOffset);
  for (; offset < end && (ch=value.charAt(offset)) < 0x80; offset++) {
    buffer[bOffset++]=(byte)ch;
  }
  os.offset(bOffset);
  return offset;
}

private int writeShort ( String value , int offset , int end ) throws IOException { int ch ; OutputStreamWithBuffer os = _os ; byte [ ] buffer = os . buffer ( ) ; int bOffset = os . offset ( ) ; end = Math . min ( end , offset + buffer . length - bOffset ) ; for ( ; offset < end && ( ch = value . charAt ( offset ) ) < 0x80 ; offset ++ ) { buffer [ bOffset ++ ] = ( byte ) ch ; } os . offset ( bOffset ) ; return offset ; }
writes a short string .
