Wrapper
From Wikipedia, the free encyclopedia
A wrapper can refer to several things:
- In computer science:
- a wrapper pattern (such as a driver wrapper) is a design pattern where a piece of code allows classes to work together that normally could not because of incompatible interfaces.
- The wrapper acts as an interface between its caller and the wrapped code. This may be done for compatibility, e.g. if the wrapped code is in a different programming language or uses different calling conventions, for security, e.g. to prevent the calling program from executing certain functions, to provide a level of emulation, e.g. a DirectX API which hides the functions of the video card driver. The implication is that the wrapped code can only be accessed via the wrapper.
- In the Java programming language a primitive wrapper class is one of eight classes provided in the Java package java.lang to provide object methods for the eight primitive types.
- In packaging, a wrapper is a flat sheet made out of paper, cellophane or plastic which is folded or vacuum sealed to enclose an object and protect it from wear and tear. It can also refer to the machine that forms the package, usually a horizontal wrapper or horizontal form, fill and seal machine. This type of wrapper (machine) forms the typical confectionery package, with a seal at each end, and a long seal usually folded on the bottom of the package.
- In clothing, a wrapper is a woman's at-home garment worn over nightwear or lingerie for warmth and modesty (chiefly UK; in the U.S. generally now called a robe or bathrobe.)
- In cigar making, the wrapper is the outer leaf of tobacco that encases the cigar.