org.springframework.boot

Class ImageBanner

  • java.lang.Object
    • org.springframework.boot.ImageBanner
  • All Implemented Interfaces:
    Banner


    public class ImageBanner
    extends java.lang.Object
    implements Banner
    Banner implementation that prints ASCII art generated from an image resource Resource.
    Since:
    1.4.0
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  ImageBanner.PixelMode
      Pixel modes supported by the image banner.
      • Nested classes/interfaces inherited from interface org.springframework.boot.Banner

        Banner.Mode
    • Constructor Summary

      Constructors 
      Constructor and Description
      ImageBanner(org.springframework.core.io.Resource image) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void printBanner(org.springframework.core.env.Environment environment, java.lang.Class<?> sourceClass, java.io.PrintStream out)
      Print the banner to the specified print stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImageBanner

        public ImageBanner(org.springframework.core.io.Resource image)
    • Method Detail

      • printBanner

        public void printBanner(org.springframework.core.env.Environment environment,
                                java.lang.Class<?> sourceClass,
                                java.io.PrintStream out)
        Description copied from interface: Banner
        Print the banner to the specified print stream.
        Specified by:
        printBanner in interface Banner
        Parameters:
        environment - the spring environment
        sourceClass - the source class for the application
        out - the output print stream