congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
TraceInputStream.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.sun.mail.util.TraceInputStream
constructor

Best Java code snippets using com.sun.mail.util.TraceInputStream.<init> (Showing top 20 results out of 315)

origin: camunda/camunda-bpm-platform

private void initStreams() throws IOException {
traceInput = new TraceInputStream(socket.getInputStream(), traceLogger);
traceInput.setQuote(quote);
input = new ResponseInputStream(traceInput);
traceOutput =
  new TraceOutputStream(socket.getOutputStream(), traceLogger);
traceOutput.setQuote(quote);
output = new DataOutputStream(new BufferedOutputStream(traceOutput));
}
origin: com.sun.mail/javax.mail

private void initStreams() throws IOException {
boolean quote = PropUtil.getBooleanProperty(props,
        "mail.debug.quote", false);
traceInput =
  new TraceInputStream(socket.getInputStream(), traceLogger);
traceInput.setQuote(quote);
traceOutput =
  new TraceOutputStream(socket.getOutputStream(), traceLogger);
traceOutput.setQuote(quote);
// should be US-ASCII, but not all JDK's support it so use iso-8859-1
input = new BufferedReader(new InputStreamReader(traceInput,
              "iso-8859-1"));
output = new PrintWriter(
    new BufferedWriter(
    new OutputStreamWriter(traceOutput, "iso-8859-1")));
}
origin: camunda/camunda-bpm-platform

private void initStreams() throws IOException {
boolean quote = PropUtil.getBooleanProperty(props,
        "mail.debug.quote", false);
traceInput =
  new TraceInputStream(socket.getInputStream(), traceLogger);
traceInput.setQuote(quote);
traceOutput =
  new TraceOutputStream(socket.getOutputStream(), traceLogger);
traceOutput.setQuote(quote);
// should be US-ASCII, but not all JDK's support it so use iso-8859-1
input = new BufferedReader(new InputStreamReader(traceInput,
              "iso-8859-1"));
output = new PrintWriter(
    new BufferedWriter(
    new OutputStreamWriter(traceOutput, "iso-8859-1")));
}
origin: com.sun.mail/javax.mail

private void initStreams() throws IOException {
traceInput = new TraceInputStream(socket.getInputStream(), traceLogger);
traceInput.setQuote(quote);
input = new ResponseInputStream(traceInput);
traceOutput =
  new TraceOutputStream(socket.getOutputStream(), traceLogger);
traceOutput.setQuote(quote);
output = new DataOutputStream(new BufferedOutputStream(traceOutput));
}
origin: camunda/camunda-bpm-platform

private void initStreams() throws IOException {
boolean quote = PropUtil.getBooleanSessionProperty(session,
        "mail.debug.quote", false);
traceInput =
  new TraceInputStream(serverSocket.getInputStream(), traceLogger);
traceInput.setQuote(quote);
traceOutput =
  new TraceOutputStream(serverSocket.getOutputStream(), traceLogger);
traceOutput.setQuote(quote);
serverOutput =
  new BufferedOutputStream(traceOutput);
serverInput =
  new BufferedInputStream(traceInput);
lineInputStream = new LineInputStream(serverInput);
}
origin: com.sun.mail/javax.mail

private void initStreams() throws IOException {
boolean quote = PropUtil.getBooleanProperty(session.getProperties(),
        "mail.debug.quote", false);
traceInput =
  new TraceInputStream(serverSocket.getInputStream(), traceLogger);
traceInput.setQuote(quote);
traceOutput =
  new TraceOutputStream(serverSocket.getOutputStream(), traceLogger);
traceOutput.setQuote(quote);
serverOutput =
  new BufferedOutputStream(traceOutput);
serverInput =
  new BufferedInputStream(traceInput);
lineInputStream = new LineInputStream(serverInput);
}
origin: camunda/camunda-bpm-platform

/**
 * Constructor for debugging.
 *
 * @param in    the InputStream to read from
 * @param out    the PrintStream to write to
 * @param props     Properties object used by this protocol
 * @param debug    true to enable debugging output
 * @exception    IOException    for I/O errors
 */
public Protocol(InputStream in, PrintStream out, Properties props,
      boolean debug) throws IOException {
this.host = "localhost";
this.props = props;
this.quote = false;
logger = new MailLogger(this.getClass(), "DEBUG", debug, System.out);
traceLogger = logger.getSubLogger("protocol", null);
// XXX - inlined initStreams, won't allow later startTLS
traceInput = new TraceInputStream(in, traceLogger);
traceInput.setQuote(quote);
input = new ResponseInputStream(traceInput);
traceOutput = new TraceOutputStream(out, traceLogger);
traceOutput.setQuote(quote);
output = new DataOutputStream(new BufferedOutputStream(traceOutput));
  timestamp = System.currentTimeMillis();
}
origin: com.sun.mail/javax.mail

/**
 * Constructor for debugging.
 *
 * @param in    the InputStream to read from
 * @param out    the PrintStream to write to
 * @param props     Properties object used by this protocol
 * @param debug    true to enable debugging output
 * @exception    IOException    for I/O errors
 */
public Protocol(InputStream in, PrintStream out, Properties props,
      boolean debug) throws IOException {
this.host = "localhost";
this.props = props;
this.quote = false;
tagPrefix = computePrefix(props, "mail.imap");
logger = new MailLogger(this.getClass(), "DEBUG", debug, System.out);
traceLogger = logger.getSubLogger("protocol", null);
// XXX - inlined initStreams, won't allow later startTLS
traceInput = new TraceInputStream(in, traceLogger);
traceInput.setQuote(quote);
input = new ResponseInputStream(traceInput);
traceOutput = new TraceOutputStream(out, traceLogger);
traceOutput.setQuote(quote);
output = new DataOutputStream(new BufferedOutputStream(traceOutput));
  timestamp = System.currentTimeMillis();
}
origin: com.sun.mail/javax.mail

traceInput = new TraceInputStream(new InflaterInputStream(
      socket.getInputStream(), inf), traceLogger);
traceInput.setQuote(quote);
origin: camunda/camunda-bpm-platform

traceInput = new TraceInputStream(new InflaterInputStream(
      socket.getInputStream(), inf), traceLogger);
traceInput.setQuote(quote);
origin: com.sun.mail/jakarta.mail

private void initStreams() throws IOException {
boolean quote = PropUtil.getBooleanProperty(props,
        "mail.debug.quote", false);
traceInput =
  new TraceInputStream(socket.getInputStream(), traceLogger);
traceInput.setQuote(quote);
traceOutput =
  new TraceOutputStream(socket.getOutputStream(), traceLogger);
traceOutput.setQuote(quote);
// should be US-ASCII, but not all JDK's support it so use iso-8859-1
input = new BufferedReader(new InputStreamReader(traceInput,
              "iso-8859-1"));
output = new PrintWriter(
    new BufferedWriter(
    new OutputStreamWriter(traceOutput, "iso-8859-1")));
}
origin: com.sun.mail/android-mail

private void initStreams() throws IOException {
traceInput = new TraceInputStream(socket.getInputStream(), traceLogger);
traceInput.setQuote(quote);
input = new ResponseInputStream(traceInput);
traceOutput =
  new TraceOutputStream(socket.getOutputStream(), traceLogger);
traceOutput.setQuote(quote);
output = new DataOutputStream(new BufferedOutputStream(traceOutput));
}
origin: com.sun.mail/jakarta.mail

private void initStreams() throws IOException {
traceInput = new TraceInputStream(socket.getInputStream(), traceLogger);
traceInput.setQuote(quote);
input = new ResponseInputStream(traceInput);
traceOutput =
  new TraceOutputStream(socket.getOutputStream(), traceLogger);
traceOutput.setQuote(quote);
output = new DataOutputStream(new BufferedOutputStream(traceOutput));
}
origin: jboss/jboss-javaee-specs

private void initStreams() throws IOException {
boolean quote = PropUtil.getBooleanProperty(props,
        "mail.debug.quote", false);
traceInput =
  new TraceInputStream(socket.getInputStream(), traceLogger);
traceInput.setQuote(quote);
traceOutput =
  new TraceOutputStream(socket.getOutputStream(), traceLogger);
traceOutput.setQuote(quote);
// should be US-ASCII, but not all JDK's support it so use iso-8859-1
input = new BufferedReader(new InputStreamReader(traceInput,
              "iso-8859-1"));
output = new PrintWriter(
    new BufferedWriter(
    new OutputStreamWriter(traceOutput, "iso-8859-1")));
}
origin: org.glassfish.metro/webservices-extra

private void initStreams() throws IOException {
traceInput = new TraceInputStream(socket.getInputStream(), traceLogger);
traceInput.setQuote(quote);
input = new ResponseInputStream(traceInput);
traceOutput =
  new TraceOutputStream(socket.getOutputStream(), traceLogger);
traceOutput.setQuote(quote);
output = new DataOutputStream(new BufferedOutputStream(traceOutput));
}
origin: jboss/jboss-javaee-specs

private void initStreams() throws IOException {
traceInput = new TraceInputStream(socket.getInputStream(), traceLogger);
traceInput.setQuote(quote);
input = new ResponseInputStream(traceInput);
traceOutput =
  new TraceOutputStream(socket.getOutputStream(), traceLogger);
traceOutput.setQuote(quote);
output = new DataOutputStream(new BufferedOutputStream(traceOutput));
}
origin: javax.mail/com.springsource.javax.mail

private void initStreams(PrintStream out) throws IOException {
traceInput = new TraceInputStream(socket.getInputStream(), out);
traceInput.setTrace(debug);
traceInput.setQuote(quote);
input = new ResponseInputStream(traceInput);
traceOutput = new TraceOutputStream(socket.getOutputStream(), out);
traceOutput.setTrace(debug);
traceOutput.setQuote(quote);
output = new DataOutputStream(new BufferedOutputStream(traceOutput));
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail

private void initStreams(PrintStream out) throws IOException {
traceInput = new TraceInputStream(socket.getInputStream(), out);
traceInput.setTrace(debug);
traceInput.setQuote(quote);
input = new ResponseInputStream(traceInput);
traceOutput = new TraceOutputStream(socket.getOutputStream(), out);
traceOutput.setTrace(debug);
traceOutput.setQuote(quote);
output = new DataOutputStream(new BufferedOutputStream(traceOutput));
}
origin: jboss/jboss-javaee-specs

private void initStreams() throws IOException {
boolean quote = PropUtil.getBooleanProperty(session.getProperties(),
        "mail.debug.quote", false);
traceInput =
  new TraceInputStream(serverSocket.getInputStream(), traceLogger);
traceInput.setQuote(quote);
traceOutput =
  new TraceOutputStream(serverSocket.getOutputStream(), traceLogger);
traceOutput.setQuote(quote);
serverOutput =
  new BufferedOutputStream(traceOutput);
serverInput =
  new BufferedInputStream(traceInput);
lineInputStream = new LineInputStream(serverInput);
}
origin: com.sun.mail/smtp

private void initStreams() throws IOException {
boolean quote = PropUtil.getBooleanProperty(session.getProperties(),
        "mail.debug.quote", false);
traceInput =
  new TraceInputStream(serverSocket.getInputStream(), traceLogger);
traceInput.setQuote(quote);
traceOutput =
  new TraceOutputStream(serverSocket.getOutputStream(), traceLogger);
traceOutput.setQuote(quote);
serverOutput =
  new BufferedOutputStream(traceOutput);
serverInput =
  new BufferedInputStream(traceInput);
lineInputStream = new LineInputStream(serverInput);
}
com.sun.mail.utilTraceInputStream<init>

Javadoc

Creates an input stream filter built on top of the specified input stream.

Popular methods of TraceInputStream

  • setQuote
    Set quote mode.
  • setTrace
    Set trace mode.
  • writeByte
    Write a byte in a way that every byte value is printable ASCII.

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • startActivity (Activity)
  • Kernel (java.awt.image)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now