public void writeStringNoCompression(String str) throws IOException {
  if (str == null) {
    writeInt(0);
  }
 else {
    writeInt(str.length());
    for (int i=0; i < str.length(); i++)     outs.write((byte)str.charAt(i));
    position+=str.length();
  }
}

public void writeStringNoCompression ( String str ) throws IOException { if ( str == null ) { writeInt ( 0 ) ; } else { writeInt ( str . length ( ) ) ; for ( int i = 0 ; i < str . length ( ) ; i ++ ) outs . write ( ( byte ) str . charAt ( i ) ) ; position += str . length ( ) ; } }
write a string without compression
