public class CouponCodesInputStream extends InputStream
InputStream iteratively reading the data for generated coupons| Constructor and Description |
|---|
CouponCodesInputStream(MultiCodeCouponModel coupon,
CouponCodesGenerator couponCodesGenerator,
int batchSize,
int totalSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
int |
getGeneratedCouponsCount() |
int |
read() |
protected void |
readNextChunkOfCodes() |
close, mark, markSupported, read, read, reset, skippublic CouponCodesInputStream(MultiCodeCouponModel coupon, CouponCodesGenerator couponCodesGenerator, int batchSize, int totalSize)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionprotected void readNextChunkOfCodes()
public int getGeneratedCouponsCount()
Copyright © 2017 SAP SE. All Rights Reserved.