Advertisement

Adapters

  • Edward Sciore
Chapter

Abstract

This chapter examines the concept of an adapter, which is wraps a class in order to change its functionality. Several examples are presented that illustrate the widespread applicability of adapter classes. Of particular interest are the Java library classes that adapt byte streams, which make it possible to read and write streams of characters, primitive values or objects.

Copyright information

© Edward Sciore 2019

Authors and Affiliations

  • Edward Sciore
    • 1
  1. 1.NewtonUSA

Personalised recommendations