Tabnine Logo
TraceInputStream.setQuote
Code IndexAdd Tabnine to your IDE (free)

How to use
setQuote
method
in
com.sun.mail.util.TraceInputStream

Best Java code snippets using com.sun.mail.util.TraceInputStream.setQuote (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);
input = new ResponseInputStream(traceInput);
origin: camunda/camunda-bpm-platform

traceInput = new TraceInputStream(new InflaterInputStream(
      socket.getInputStream(), inf), traceLogger);
traceInput.setQuote(quote);
input = new ResponseInputStream(traceInput);
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.utilTraceInputStreamsetQuote

Javadoc

Set quote mode.

Popular methods of TraceInputStream

  • <init>
    Creates an input stream filter built on top of the specified input stream.
  • setTrace
    Set trace mode.
  • writeByte
    Write a byte in a way that every byte value is printable ASCII.

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Permission (java.security)
    Legacy security code; do not use.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Table (org.hibernate.mapping)
    A relational table
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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