sm.writeByte((byte)3);
sm.writeBytes(new byte[] { (byte)4, (byte)5, (byte)6 });
sm.writeChar((char)7);
sm.writeDouble(8.0);
sm.writeFloat(9.0f);
sm.writeInt(10);
sm.writeLong(11l);
sm.writeObject("this is an object");
sm.writeShort((short)12);
sm.writeString("this is a String");
}