public static bool isSwf(System.IO.Stream in_Renamed) { try { //UPGRADE_TODO: Class 'java.io.DataInputStream' was converted to 'System.IO.BinaryReader' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataInputStream'" System.IO.BinaryReader data = new System.IO.BinaryReader(in_Renamed); sbyte[] b = new sbyte[3]; //UPGRADE_ISSUE: Method 'java.io.FilterInputStream.mark' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaioFilterInputStreammark_int'" data.mark(b.Length); SupportClass.ReadInput(data.BaseStream, b, 0, b.Length); if (b[0] == 'C' && b[1] == 'W' && b[2] == 'S' || b[0] == 'F' && b[1] == 'W' && b[2] == 'S') { //UPGRADE_ISSUE: Method 'java.io.FilterInputStream.reset' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaioFilterInputStreamreset'" data.reset(); return true; } else { //UPGRADE_ISSUE: Method 'java.io.FilterInputStream.reset' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaioFilterInputStreamreset'" data.reset(); return false; } } catch (System.IO.IOException e) { return false; } }