Uses of Class
com.cedarsoftware.util.DataGeneratorInputStream
Packages that use DataGeneratorInputStream
-
Uses of DataGeneratorInputStream in com.cedarsoftware.util
Methods in com.cedarsoftware.util that return DataGeneratorInputStreamModifier and TypeMethodDescriptionstatic DataGeneratorInputStreamDataGeneratorInputStream.withConstantByte(long size, int constantByte) Creates a stream that outputs the same byte value repeatedly.static DataGeneratorInputStreamDataGeneratorInputStream.withGenerator(long size, IntSupplier generator) Creates a stream that uses a custom IntSupplier for generating bytes.static DataGeneratorInputStreamDataGeneratorInputStream.withRandomBytes(long size) Creates a stream that generates random bytes in the range 0-255 using the default seed (12345L).static DataGeneratorInputStreamDataGeneratorInputStream.withRandomBytes(long size, long seed) Creates a stream that generates random bytes in the range 0-255 using the specified seed.static DataGeneratorInputStreamDataGeneratorInputStream.withRandomBytes(long size, long seed, boolean includeZero) Creates a stream that generates random bytes using the specified seed.static DataGeneratorInputStreamDataGeneratorInputStream.withRandomStrings(long size, Random random, int minWordLen, int maxWordLen, int separator) Creates a stream that generates random proper-case alphabetic strings (like "Xkqmz Pqwer Fgthn") usingStringUtilities.getRandomString(Random, int, int).static DataGeneratorInputStreamDataGeneratorInputStream.withRepeatingPattern(long size, byte[] pattern) Creates a stream that repeatedly outputs the bytes from the given byte array.static DataGeneratorInputStreamDataGeneratorInputStream.withRepeatingPattern(long size, String pattern) Creates a stream that repeatedly outputs the bytes from the given string (UTF-8 encoded).static DataGeneratorInputStreamDataGeneratorInputStream.withSequentialBytes(long size, int startByte, int endByte) Creates a stream that counts sequentially between two byte values, wrapping when reaching the end.