writeString method is required.