Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

What are the examples of Adapter design pattern in JDK

Pragya Keshap answered on February 10, 2023 Popularity 4/10 Helpfulness 1/10

Contents


More Related Answers

  • adapter design pattern in c++
  • java adapter pattern
  • adapter design pattern
  • Adapter Design Pattern
  • What are the design patterns involved in JDBC architecture?
  • When to use the Adapter pattern in Java? Have you used it before in your project?
  • What are the examples of Observer design pattern in JDK?
  • What are the examples of Builder design pattern in JDK?
  • What are the examples of Decorator design pattern in JDK?
  • What are the examples of Command design pattern in JDK?
  • What are the examples of Interpreter design pattern in JDK?
  • What are the examples of Mediator design pattern in JDK?
  • What are the examples of Visitor design pattern in JDK?

  • What are the examples of Adapter design pattern in JDK

    0

    In JDK there are many places where Adapter design pattern is used.

    Some of these are as follows:

    java.util.Arrays.asList(): This method can adapt an Array

    to work as a List.

    java.util.Collections.list(): This method can adapt any

    collection to provide List behavior.

    java.util.Collections.enumeration(): This method returns

    an enumeration over the collection.

    java.io.InputStreamReader(InputStream): This method

    adapts a Stream to Reader class.

    java.io.OutputStreamWriter(OutputStream): This method

    adapts an OutputStream to Writer class.

    javax.xml.bind.annotation.adapters.XmlAdapter.marshal()

    https://www.digitalocean.com/community/tutorials/adapter-design-pattern-java

    Popularity 4/10 Helpfulness 1/10 Language java
    Source: Grepper
    Tags: adapter java
    Link to this answer
    Share Copy Link
    Contributed on Feb 10 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.