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

📄 repositorystore.java

📁 这是linux下ssl vpn的实现程序
💻 JAVA
字号:
package com.sslexplorer.boot;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * A single {@link Repository} may contain multiple stores. This interface
 * abstracts these stores.
 * <p>
 * A single store may contain multiple named <i>Entries</i>. Each of these
 * entries is simple a blob of data that may accessed via I/O streams.
 * 
 * 
 * @author Brett Smith <a href="mailto: brett@3sp.com">&lt;brett@3sp.com&gt;</a>
 * @version $Revision: 1.1 $
 */
public interface RepositoryStore {

    /**
     * Get a named entry as an input stream. If not such entry exists then
     * a {@link java.io.FileNotFoundException} will be thrown.
     * 
     * @param name name of entry
     * @return input stream
     * @throws IOException on any error including file not found
     */
	public InputStream getEntryInputStream(String name) throws IOException;
	
    /**
     * Get an output stream for a named entry which may be written to. If
     * an entry with the same name already exists it will be overwritten.
     * 
     * @param name name of entry
     * @return output stream which may be written to
     * @throws IOException on any error
     */
	public OutputStream getEntryOutputStream(String name) throws IOException;
	
    /**
     * Remove an entry given its name.
     * 
     * @param name name of entry to remove
     * @throws IOException on any error
     */
	public void removeEntry(String name) throws IOException;
	
    /**
     * Get if a named entry exists.
     * 
     * @param name name of entry
     * @return entry exists
     */
	public boolean hasEntry(String name);
	
    /**
     * Get a list of all entry names.
     * 
     * @return entry names
     */
	public String[] listEntries();
}

⌨️ 快捷键说明

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