+#ifdef STREAM_SUPPORT
+ostream &
+operator << (ostream& os, String d)
+{
+ d.print_on (os);
+ return os;
+}
+
+
+void
+String::print_on (ostream& os) const
+{
+ if (!strh_.is_binary_bo ())
+ os << to_str0 ();
+ else
+ for (int i = 0; i < length (); i++)
+ os << (Byte) (*this)[ i ];
+}
+#endif