
com.gc.iotools.stream.base.EasyStreamConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easystream Show documentation
Show all versions of easystream Show documentation
EasyStream is a small set of utilities for dealing with
streams (InputStreams
and OutputStreams).
The aim is to ease the use of
pipes when they're required.
Main features are:
* "Convert" an
OutputStream to an InputStream.
* Count the number of bytes read or
wrote to a given stream.
* While reading the data from an InputStream
copy it to a supplied
OutputStream.
* Read the content of an InputStream
multiple times or seek to a
definite position
The newest version!
package com.gc.iotools.stream.base;
/*
* Copyright (c) 2008, 2015 Gabriele Contini. This source code is released
* under the BSD License.
*/
/**
* EasyStream constant values.
*
* @author gcontini
* @version $Id: EasyStreamConstants.java 576 2015-03-28 00:03:33Z gcontini $
*/
public final class EasyStreamConstants {
/**
* Default size for pipe buffer.
*/
public static final int DEFAULT_PIPE_SIZE = 4096;
/** Constant ONE_KILOBYTE=1024F
*/
public static final float ONE_KILOBYTE = 1024F;
/**
* Default skip size.
*/
public static final int SKIP_BUFFER_SIZE = 8192;
private EasyStreamConstants() {
// utility class: don't instantiate
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy