Package com.asakusafw.runtime.directio.util

Examples of com.asakusafw.runtime.directio.util.CountInputStream


            try {
                in.seek(offset);
                ModelInput<StringBuilder> result = format.createInput(
                        dataType,
                        path.toString(),
                        new CountInputStream(in, counter),
                        offset,
                        fragmentSize);
                succeed = true;
                return result;
            } finally {
View Full Code Here


                            path,
                            offset,
                            fragmentSize));
                }
            }
            CountInputStream cstream;
            if (LOG.isDebugEnabled()) {
                cstream = new CountInputStream(stream, counter) {
                    @Override
                    public void close() throws IOException {
                        LOG.debug(MessageFormat.format(
                                "Start closing input (path={0}, offset={1}, size={2})",
                                path,
                                offset,
                                fragmentSize));
                        super.close();
                        LOG.debug(MessageFormat.format(
                                "Finish closing input (path={0}, offset={1}, size={2})",
                                path,
                                offset,
                                fragmentSize));
                    }
                };
            } else {
                cstream = new CountInputStream(stream, counter);
            }
            ModelInput<T> input = streamFormat.createInput(dataType, path.toString(), cstream, offset, fragmentSize);
            succeed = true;
            return input;
        } finally {
View Full Code Here

TOP

Related Classes of com.asakusafw.runtime.directio.util.CountInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.