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

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

Best Java code snippets using com.sun.mail.util.TraceInputStream.writeByte (Showing top 18 results out of 315)

origin: camunda/camunda-bpm-platform

/**
 * Reads the next byte of data from this input stream. Returns
 * <code>-1</code> if no data is available. Writes out the read
 * byte into the trace stream, if trace mode is <code>true</code>
 */
public int read() throws IOException {
int b = in.read();
if (trace && b != -1) {
  if (quote)
  writeByte(b);
  else
  traceOut.write(b);
}
return b;
}
origin: com.sun.mail/javax.mail

/**
 * Reads the next byte of data from this input stream. Returns
 * <code>-1</code> if no data is available. Writes out the read
 * byte into the trace stream, if trace mode is <code>true</code>
 */
@Override
public int read() throws IOException {
int b = in.read();
if (trace && b != -1) {
  if (quote)
  writeByte(b);
  else
  traceOut.write(b);
}
return b;
}
origin: camunda/camunda-bpm-platform

/**
 * Reads up to <code>len</code> bytes of data from this input stream
 * into an array of bytes. Returns <code>-1</code> if no more data
 * is available. Writes out the read bytes into the trace stream, if 
 * trace mode is <code>true</code>
 */
public int read(byte b[], int off, int len) throws IOException {
int count = in.read(b, off, len);
if (trace && count != -1) {
  if (quote) {
  for (int i = 0; i < count; i++)
    writeByte(b[off + i]);
  } else
  traceOut.write(b, off, count);
}
return count;
}
origin: com.sun.mail/javax.mail

/**
 * Reads up to <code>len</code> bytes of data from this input stream
 * into an array of bytes. Returns <code>-1</code> if no more data
 * is available. Writes out the read bytes into the trace stream, if 
 * trace mode is <code>true</code>
 */
@Override
public int read(byte b[], int off, int len) throws IOException {
int count = in.read(b, off, len);
if (trace && count != -1) {
  if (quote) {
  for (int i = 0; i < count; i++)
    writeByte(b[off + i]);
  } else
  traceOut.write(b, off, count);
}
return count;
}
origin: javax.mail/com.springsource.javax.mail

/**
 * Reads the next byte of data from this input stream. Returns
 * <code>-1</code> if no data is available. Writes out the read
 * byte into the trace stream, if trace mode is <code>true</code>
 */
public int read() throws IOException {
int b = in.read();
if (trace && b != -1) {
  if (quote)
  writeByte(b);
  else
  traceOut.write(b);
}
return b;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail

/**
 * Reads the next byte of data from this input stream. Returns
 * <code>-1</code> if no data is available. Writes out the read
 * byte into the trace stream, if trace mode is <code>true</code>
 */
public int read() throws IOException {
int b = in.read();
if (trace && b != -1) {
  if (quote)
  writeByte(b);
  else
  traceOut.write(b);
}
return b;
}
origin: com.sun.mail/android-mail

/**
 * Reads the next byte of data from this input stream. Returns
 * <code>-1</code> if no data is available. Writes out the read
 * byte into the trace stream, if trace mode is <code>true</code>
 */
@Override
public int read() throws IOException {
int b = in.read();
if (trace && b != -1) {
  if (quote)
  writeByte(b);
  else
  traceOut.write(b);
}
return b;
}
origin: com.sun.mail/mailapi

/**
 * Reads the next byte of data from this input stream. Returns
 * <code>-1</code> if no data is available. Writes out the read
 * byte into the trace stream, if trace mode is <code>true</code>
 */
@Override
public int read() throws IOException {
int b = in.read();
if (trace && b != -1) {
  if (quote)
  writeByte(b);
  else
  traceOut.write(b);
}
return b;
}
origin: javax.mail/com.springsource.javax.mail

/**
 * Reads up to <code>len</code> bytes of data from this input stream
 * into an array of bytes. Returns <code>-1</code> if no more data
 * is available. Writes out the read bytes into the trace stream, if 
 * trace mode is <code>true</code>
 */
public int read(byte b[], int off, int len) throws IOException {
int count = in.read(b, off, len);
if (trace && count != -1) {
  if (quote) {
  for (int i = 0; i < count; i++)
    writeByte(b[off + i]);
  } else
  traceOut.write(b, off, count);
}
return count;
}
origin: com.sun.mail/jakarta.mail

/**
 * Reads the next byte of data from this input stream. Returns
 * <code>-1</code> if no data is available. Writes out the read
 * byte into the trace stream, if trace mode is <code>true</code>
 */
@Override
public int read() throws IOException {
int b = in.read();
if (trace && b != -1) {
  if (quote)
  writeByte(b);
  else
  traceOut.write(b);
}
return b;
}
origin: jboss/jboss-javaee-specs

/**
 * Reads the next byte of data from this input stream. Returns
 * <code>-1</code> if no data is available. Writes out the read
 * byte into the trace stream, if trace mode is <code>true</code>
 */
@Override
public int read() throws IOException {
int b = in.read();
if (trace && b != -1) {
  if (quote)
  writeByte(b);
  else
  traceOut.write(b);
}
return b;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail

/**
 * Reads up to <code>len</code> bytes of data from this input stream
 * into an array of bytes. Returns <code>-1</code> if no more data
 * is available. Writes out the read bytes into the trace stream, if 
 * trace mode is <code>true</code>
 */
public int read(byte b[], int off, int len) throws IOException {
int count = in.read(b, off, len);
if (trace && count != -1) {
  if (quote) {
  for (int i = 0; i < count; i++)
    writeByte(b[off + i]);
  } else
  traceOut.write(b, off, count);
}
return count;
}
origin: org.glassfish.metro/webservices-extra

/**
 * Reads the next byte of data from this input stream. Returns
 * <code>-1</code> if no data is available. Writes out the read
 * byte into the trace stream, if trace mode is <code>true</code>
 */
@Override
public int read() throws IOException {
int b = in.read();
if (trace && b != -1) {
  if (quote)
  writeByte(b);
  else
  traceOut.write(b);
}
return b;
}
origin: org.glassfish.metro/webservices-extra

/**
 * Reads up to <code>len</code> bytes of data from this input stream
 * into an array of bytes. Returns <code>-1</code> if no more data
 * is available. Writes out the read bytes into the trace stream, if 
 * trace mode is <code>true</code>
 */
@Override
public int read(byte b[], int off, int len) throws IOException {
int count = in.read(b, off, len);
if (trace && count != -1) {
  if (quote) {
  for (int i = 0; i < count; i++)
    writeByte(b[off + i]);
  } else
  traceOut.write(b, off, count);
}
return count;
}
origin: com.sun.mail/jakarta.mail

/**
 * Reads up to <code>len</code> bytes of data from this input stream
 * into an array of bytes. Returns <code>-1</code> if no more data
 * is available. Writes out the read bytes into the trace stream, if 
 * trace mode is <code>true</code>
 */
@Override
public int read(byte b[], int off, int len) throws IOException {
int count = in.read(b, off, len);
if (trace && count != -1) {
  if (quote) {
  for (int i = 0; i < count; i++)
    writeByte(b[off + i]);
  } else
  traceOut.write(b, off, count);
}
return count;
}
origin: com.sun.mail/android-mail

/**
 * Reads up to <code>len</code> bytes of data from this input stream
 * into an array of bytes. Returns <code>-1</code> if no more data
 * is available. Writes out the read bytes into the trace stream, if 
 * trace mode is <code>true</code>
 */
@Override
public int read(byte b[], int off, int len) throws IOException {
int count = in.read(b, off, len);
if (trace && count != -1) {
  if (quote) {
  for (int i = 0; i < count; i++)
    writeByte(b[off + i]);
  } else
  traceOut.write(b, off, count);
}
return count;
}
origin: com.sun.mail/mailapi

/**
 * Reads up to <code>len</code> bytes of data from this input stream
 * into an array of bytes. Returns <code>-1</code> if no more data
 * is available. Writes out the read bytes into the trace stream, if 
 * trace mode is <code>true</code>
 */
@Override
public int read(byte b[], int off, int len) throws IOException {
int count = in.read(b, off, len);
if (trace && count != -1) {
  if (quote) {
  for (int i = 0; i < count; i++)
    writeByte(b[off + i]);
  } else
  traceOut.write(b, off, count);
}
return count;
}
origin: jboss/jboss-javaee-specs

/**
 * Reads up to <code>len</code> bytes of data from this input stream
 * into an array of bytes. Returns <code>-1</code> if no more data
 * is available. Writes out the read bytes into the trace stream, if 
 * trace mode is <code>true</code>
 */
@Override
public int read(byte b[], int off, int len) throws IOException {
int count = in.read(b, off, len);
if (trace && count != -1) {
  if (quote) {
  for (int i = 0; i < count; i++)
    writeByte(b[off + i]);
  } else
  traceOut.write(b, off, count);
}
return count;
}
com.sun.mail.utilTraceInputStreamwriteByte

Javadoc

Write a byte in a way that every byte value is printable ASCII.

Popular methods of TraceInputStream

  • <init>
    Creates an input stream filter built on top of the specified input stream.
  • setQuote
    Set quote mode.
  • setTrace
    Set trace mode.

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ImageIO (javax.imageio)
  • JTextField (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • From CI to AI: The AI layer in your organization
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