Package net.sf.saxon.tree.util

## Class DocumentNumberAllocator

- java.lang.Object
- - net.sf.saxon.tree.util.DocumentNumberAllocator

-     public class DocumentNumberAllocator
      extends java.lang.Object

  This class (which has one instance per Configuration) is used to allocate unique document numbers. It's a separate class so that it can act as a monitor for synchronization

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `DocumentNumberAllocator()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `long` | `allocateDocumentNumber()` | Allocate a unique document number
    `long` | `allocateStreamedDocumentNumber()` | Allocate a unique document number for a streamed document

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

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

- - ### Constructor Detail

    - #### DocumentNumberAllocator

          public DocumentNumberAllocator()

  - ### Method Detail

    - #### allocateDocumentNumber

          public long allocateDocumentNumber()

      Allocate a unique document number
      Returns:
        a unique document number

    - #### allocateStreamedDocumentNumber

          public long allocateStreamedDocumentNumber()

      Allocate a unique document number for a streamed document
      Returns:
        a unique document number for a streamed document