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

📄 dboutputstreamerrcall.java

📁 介绍:MySQL是比较出名的数据库软件
💻 JAVA
字号:
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1997, 1998, 1999, 2000 *	Sleepycat Software.  All rights reserved. * *	$Id: DbOutputStreamErrcall.java,v 11.3 2000/02/14 02:59:56 bostic Exp $ */package com.sleepycat.db;import java.io.OutputStream;import java.io.IOException;/** * * @author Donald D. Anderson * * This class is not public, as it is only used internally * by Db to implement a default error handler. *//*package*/ class DbOutputStreamErrcall implements DbErrcall{    DbOutputStreamErrcall(OutputStream stream)    {        this.stream_ = stream;    }    // errcall implements DbErrcall    //    public void errcall(String prefix, String buffer)    {        try {            if (prefix != null) {                stream_.write(prefix.getBytes());                stream_.write((new String(": ")).getBytes());            }            stream_.write(buffer.getBytes());            stream_.write((new String("\n")).getBytes());        }        catch (IOException e) {            // well, we tried.            // Do our best to report the problem by other means.            //            System.err.println("DbOutputStreamErrcall Exception: " + e);            if (prefix != null)                System.err.print(prefix + ": ");            System.err.println(buffer + "\n");        }    }    // private data    //    private OutputStream stream_;}// end of DbOutputStreamErrcall.java

⌨️ 快捷键说明

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