Class CouponCodesInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class CouponCodesInputStream
    extends java.io.InputStream
    Custom implementation of the InputStream iteratively reading the data for generated coupons
    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • available

        public int available()
                      throws java.io.IOException
        Overrides:
        available in class java.io.InputStream
        Throws:
        java.io.IOException
      • readNextChunkOfCodes

        protected void readNextChunkOfCodes()
      • getGeneratedCouponsCount

        public int getGeneratedCouponsCount()