⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gzipstreamfactory.java

📁 Java的面向对象数据库系统的源代码
💻 JAVA
字号:
// You can redistribute this software and/or modify it under the terms of// the Ozone Core License version 1 published by ozone-db.org.//// Copyright (C) 2003-@year@, Leo Mekenkamp. All rights reserved.//// $Id: GZIPStreamFactory.java,v 1.1 2004/01/02 09:24:38 leomekenkamp Exp $package org.ozoneDB.core.storage.gammaStore;import java.io.IOException;import java.io.InputStream;import java.io.OutputStream;import java.util.Collection;import java.util.LinkedList;import java.util.List;import java.util.Properties;import java.util.zip.GZIPInputStream;import java.util.zip.GZIPOutputStream;import org.ozoneDB.core.storage.PropertyConfigurable;import org.ozoneDB.core.storage.PropertyInfo;/** * Factory that creates streams that read/write to other streams via a GZIP * stream. * * @author <a href="mailto:leoATmekenkampD0Tcom">Leo Mekenkamp (mind the anti sp@m)</a> * @version $Id: GZIPStreamFactory.java,v 1.1 2004/01/02 09:24:38 leomekenkamp Exp $ */public class GZIPStreamFactory implements StreamFactory, PropertyConfigurable {           private String prefix;        /**     * As prescribed by the <code>PropertyConfigurable</code> interface.     */    public GZIPStreamFactory(Properties properties, String prefix) {        this.prefix = prefix;    }        public InputStream createInputStream(InputStream in) throws IOException {        return new GZIPInputStream(in);    }        public OutputStream createOutputStream(OutputStream out) throws IOException {        return new GZIPOutputStream(out);    }        public Collection getPropertyInfos() {        return new LinkedList();    }        public String getPrefix() {        return prefix;    }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -