Exemplo n.º 1
0
 /**
  * Checks if the supplied first 8 bytes of a stream / file
  *  has a POIFS (OLE2) header.
  */
 public static new bool HasPOIFSHeader(byte[] header8Bytes)
 {
     return(NPOIFSFileSystem.HasPOIFSHeader(header8Bytes));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Checks that the supplied Stream(which MUST
 /// support mark and reset, or be a PushbackInputStream)
 /// has a POIFS (OLE2) header at the start of it.
 /// If your Streamdoes not support mark / reset,
 /// then wrap it in a PushBackInputStream, then be
 /// sure to always use that, and not the original!
 /// </summary>
 /// <param name="inp">An Streamwhich supports either mark/reset, or is a PushbackStream</param>
 /// <returns>
 ///     <c>true</c> if [has POIFS header] [the specified inp]; otherwise, <c>false</c>.
 /// </returns>
 public static new bool HasPOIFSHeader(Stream inp)
 {
     return(NPOIFSFileSystem.HasPOIFSHeader(inp));
 }