Interface Closeable<D extends AnyDocument<D>,PC extends Content<D,PC>>

Type Parameters:
D - This document type
PC - The parent content model this element is within
All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
AnyA_c, AnyABBR_c, AnyADDRESS_c, AnyARTICLE_c, AnyASIDE_c, AnyB_c, AnyBDI_c, AnyBDO_c, AnyBLOCKQUOTE_c, AnyBODY_c, AnyCAPTION_c, AnyCITE_c, AnyCODE_c, AnyCOLGROUP_c, AnyDATA_c, AnyDATALIST_c, AnyDD_c, AnyDEL_c, AnyDFN_c, AnyDIV_c, AnyDL_c, AnyDT_c, AnyEM_c, AnyFOOTER_c, AnyFORM_c, AnyH_c, AnyH1_c, AnyH2_c, AnyH3_c, AnyH4_c, AnyH5_c, AnyH6_c, AnyHEAD_c, AnyHEADER_c, AnyHTML_c, AnyI_c, AnyINS_c, AnyKBD_c, AnyLABEL_c, AnyLI_c, AnyMAIN_c, AnyMAP_c, AnyMARK_c, AnyMENU_c, AnyMETER_c, AnyNAV_c, AnyOBJECT_c, AnyOL_c, AnyOPTGROUP_c, AnyOPTION_c, AnyOUTPUT_c, AnyP_c, AnyPRE_c, AnyPROGRESS_c, AnyQ_c, AnyS_c, AnySAMP_c, AnySECTION_c, AnySELECT_c, AnySMALL_c, AnySPAN_c, AnySTRONG_c, AnySUB_c, AnySUP_c, AnyTABLE_c, AnyTBODY_c, AnyTD_c, AnyTEXTAREA_c, AnyTFOOT_c, AnyTH_c, AnyTHEAD_c, AnyTITLE_c, AnyTR_c, AnyU_c, AnyUL_c, AnyVAR_c, Normal_c, NormalText_c, Transparent_c, TransparentText_c

public interface Closeable<D extends AnyDocument<D>,PC extends Content<D,PC>> extends Closeable
When the content of an element is closed, the element's ending tag is written then the enclosing content model is returned.
Author:
AO Industries, Inc.
  • Method Summary

    Modifier and Type
    Method
    Description
    __()
    Closes the content and ends the parent tag.
    void
    Closes the content and ends the parent tag.
  • Method Details

    • close

      void close() throws IOException
      Closes the content and ends the parent tag. This is for use in try-with-resources, and simply calls __().

      Note: Every implementation must be idempotent and only call __() on the first call to close().

      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
      See Also:
    • __

      PC __() throws IOException
      Closes the content and ends the parent tag.
      Returns:
      The parent content model this element is within
      Throws:
      IOException
      See Also: