de.esprit.appsuite.nio.binary

## Class BinaryDataWrapperStore<C extends BinaryChannel,S extends BinaryDataStructure>

- java.lang.Object
- - de.esprit.common.util.DumpableObject
  - - de.esprit.common.log.SimpleLogSupportAdapter
    - - de.esprit.appsuite.nio.binary.BinaryDataWrapperStore<C,S>

- All Implemented Interfaces:
    BinaryDataStructure, SimpleLogSupport, Dumpable, Resettable

      public class BinaryDataWrapperStore<C extends BinaryChannel,S extends BinaryDataStructure>
      extends SimpleLogSupportAdapter
      implements BinaryDataStructure

  This class...
  Author:
    Rainer Buesch

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BinaryDataWrapperStore(C binaryChannel)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected <B extends S> B` | `add(B wrapper)`
    `protected void` | `ensureSetup()`
    `protected void` | `ensureSetup(int index)`
    `protected C` | `getBinaryChannel()`
    `long` | `getEndPosition()` Returns the end-position of this structure in the file-channel.
    `S` | `getEntry(int index)`
    `int` | `getEntryCount()`
    `BinaryDataStructure` | `getPredecessor()`
    `void` | `reset()` This method is called by the ResetButton on it's registered target.
    `void` | `setPredecessor(BinaryDataStructure predecessor)` Sets a reference to the previous structure.

    - ### Methods inherited from class de.esprit.common.log.SimpleLogSupportAdapter

      `getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel`

    - ### Methods inherited from class de.esprit.common.util.DumpableObject

      `configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toString`

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

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

- - ### Constructor Detail

    - #### BinaryDataWrapperStore

          public BinaryDataWrapperStore(C binaryChannel)

  - ### Method Detail

    - #### getBinaryChannel

          protected final C getBinaryChannel()

    - #### getEntryCount

          public final int getEntryCount()
                                  throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### getEntry

          public final S getEntry(int index)
                                                       throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### add

          protected final <B extends S> B add(B wrapper)

    - #### setPredecessor

          public final void setPredecessor(BinaryDataStructure predecessor)

      Description copied from interface: `BinaryDataStructure`
      Sets a reference to the previous structure. Note that determining the end-position may cause a chained read of the previous stucture's data.
      Specified by:
        `setPredecessor` in interface `BinaryDataStructure`
      See Also:
        `BinaryDataStructure.getEndPosition()`

    - #### getPredecessor

          public final BinaryDataStructure getPredecessor()

    - #### ensureSetup

          protected void ensureSetup(int index)
                              throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### ensureSetup

          protected void ensureSetup()
                              throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### getEndPosition

          public final long getEndPosition()
                                    throws java.io.IOException

      Description copied from interface: `BinaryDataStructure`
      Returns the end-position of this structure in the file-channel. Note that determining the end-position may cause a read of the stucture's data.
      Specified by:
        `getEndPosition` in interface `BinaryDataStructure`
      Throws:
        `java.io.IOException`

    - #### reset

          public void reset()

      Description copied from interface: `Resettable`
      This method is called by the ResetButton on it's registered target.
      Specified by:
        `reset` in interface `Resettable`

Copyright © 2014 EsprIT-Systems. All Rights Reserved.