예제 #1
0
 /// <summary>
 /// Determines whether this instance can decode the specified header.
 /// </summary>
 /// <param name="header">The header data</param>
 /// <returns>True if it can, false otherwise</returns>
 public bool CanDecode(byte[] header)
 {
     if (header == null)
     {
         return(false);
     }
     return(Decoder.CanDecode(header));
 }
예제 #2
0
 /// <summary>
 /// Determines whether this instance can decode the specified file name.
 /// </summary>
 /// <param name="fileName">Name of the file.</param>
 /// <returns>True if it can, false otherwise</returns>
 public bool CanDecode(string fileName)
 {
     if (string.IsNullOrEmpty(fileName))
     {
         return(false);
     }
     return(Decoder.CanDecode(fileName));
 }
예제 #3
0
 /// <summary>
 /// Determines whether this instance can decode the specified stream.
 /// </summary>
 /// <param name="stream">The stream.</param>
 /// <returns>
 /// True if it can, false otherwise
 /// </returns>
 public bool CanDecode(Stream stream)
 {
     if (stream == null)
     {
         return(false);
     }
     return(Decoder.CanDecode(stream));
 }