return (stream.LastError()==wxStream_NOERROR);
}
+bool wxPNMHandler::CanRead( wxInputStream& stream )
+{
+ off_t pos=stream.TellI();
+
+ Skip_Comment(stream);
+
+ if (stream.GetC()==_T('P'))
+ switch (stream.GetC())
+ {
+ case _T('3'): case _T('6'):
+ stream.SeekI(pos);
+ return TRUE;
+ }
+
+ stream.SeekI(pos);
+ return FALSE;
+}
+
+
#endif // wxUSE_STREAMS