com.ihr.xbrl.util

## Class FastDocumentTypeIdentifier

- java.lang.Object
- - com.ihr.xbrl.util.FastDocumentTypeIdentifier

-     public class FastDocumentTypeIdentifier
      extends java.lang.Object

  This class provides a very fast mechanism to identify if a File is an XBRL document Linkbase, Taxonomy or XBRL Report.

  Added code to recognize iXBRL instances

  Author:
    Ignacio

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static XBRLDocumentContentExplorer` | `NOT_AN_XBRL_DOCUMENT` The Constant NOT_AN_XBRL_DOCUMENT.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `FastDocumentTypeIdentifier()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static XBRLDocumentContentExplorer` | `getDocumentType(java.io.File zfp)` Gets the document type.
    `static XBRLDocumentContentExplorer` | `getDocumentType(java.net.URI uri)` Gets the document type.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### NOT_AN_XBRL_DOCUMENT

          public static final XBRLDocumentContentExplorer NOT_AN_XBRL_DOCUMENT

      The Constant NOT_AN_XBRL_DOCUMENT.

  - ### Constructor Detail

    - #### FastDocumentTypeIdentifier

          public FastDocumentTypeIdentifier()

  - ### Method Detail

    - #### getDocumentType

          public static XBRLDocumentContentExplorer getDocumentType(java.net.URI uri)

      Gets the document type.
      Parameters:
        `uri` - the uri
      Returns:
        the document type

    - #### getDocumentType

          public static XBRLDocumentContentExplorer getDocumentType(java.io.File zfp)

      Gets the document type.
      Parameters:
        `zfp` - the zfp
      Returns:
        the document type