Package xbird.util.io

Examples of xbird.util.io.FastBufferedOutputStream


            raf.close();

            fos = new FileOutputStream(file, true);
        }

        final FastBufferedOutputStream bos = new FastBufferedOutputStream(fos, 4096);
        final DataOutputStream out = new DataOutputStream(bos);

        if(attemptShrink) {
            out.writeInt(totalEntries);
            out.writeInt(0); // duplicateEnrties
View Full Code Here


    private static void makeCache(final String fileName, final Map<MutableString, Long> map)
            throws IOException {
        File cacheFile = new File(fileName);
        FileOutputStream fos = new FileOutputStream(cacheFile, false);
        FastBufferedOutputStream bos = new FastBufferedOutputStream(fos);
        ObjectUtils.toStream(map, bos);
        bos.flush();
        bos.close();
    }
View Full Code Here

            }
        }

        public void flush(boolean close) throws IOException {
            FileOutputStream fos = new FileOutputStream(descFile, false);
            FastBufferedOutputStream bos = new FastBufferedOutputStream(fos, 8192);
            ObjectUtils.toStream(recordMap, bos);
            bos.flush();
            bos.close();

            if(close) {
                close();
            }
        }
View Full Code Here

    private static void makeCache(final String fileName, final Map<MutableString, Long> map)
            throws IOException {
        File cacheFile = new File(fileName);
        FileOutputStream fos = new FileOutputStream(cacheFile, false);
        FastBufferedOutputStream bos = new FastBufferedOutputStream(fos);
        ObjectUtils.toStream(map, bos);
        bos.flush();
        bos.close();
    }
View Full Code Here

            raf.close();

            fos = new FileOutputStream(file, true);
        }

        final FastBufferedOutputStream bos = new FastBufferedOutputStream(fos, 4096);
        final DataOutputStream out = new DataOutputStream(bos);

        if(attemptShrink) {
            out.writeInt(totalEntries);
            out.writeInt(0); // duplicateEnrties
View Full Code Here

            }
        }

        public void flush(boolean close) throws IOException {
            FileOutputStream fos = new FileOutputStream(descFile, false);
            FastBufferedOutputStream bos = new FastBufferedOutputStream(fos, 8192);
            ObjectUtils.toStream(recordMap, bos);
            bos.flush();
            bos.close();

            if(close) {
                close();
            }
        }
View Full Code Here

TOP

Related Classes of xbird.util.io.FastBufferedOutputStream

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.