Class Wire


  • @Contract(threading=IMMUTABLE)
    public class Wire
    extends java.lang.Object
    Logs data to the wire LOG. TODO: make package private. Should not be part of the public API.
    Since:
    4.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String id  
      private org.apache.commons.logging.Log log  
    • Constructor Summary

      Constructors 
      Constructor Description
      Wire​(org.apache.commons.logging.Log log)  
      Wire​(org.apache.commons.logging.Log log, java.lang.String id)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean enabled()  
      void input​(byte[] b)  
      void input​(byte[] b, int off, int len)  
      void input​(int b)  
      void input​(java.io.InputStream inStream)  
      void input​(java.lang.String s)  
      void output​(byte[] b)  
      void output​(byte[] b, int off, int len)  
      void output​(int b)  
      void output​(java.io.InputStream outStream)  
      void output​(java.lang.String s)  
      private void wire​(java.lang.String header, java.io.InputStream inStream)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        private final org.apache.commons.logging.Log log
      • id

        private final java.lang.String id
    • Constructor Detail

      • Wire

        public Wire​(org.apache.commons.logging.Log log,
                    java.lang.String id)
        Since:
        4.3
      • Wire

        public Wire​(org.apache.commons.logging.Log log)
    • Method Detail

      • wire

        private void wire​(java.lang.String header,
                          java.io.InputStream inStream)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • enabled

        public boolean enabled()
      • output

        public void output​(java.io.InputStream outStream)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • input

        public void input​(java.io.InputStream inStream)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • output

        public void output​(byte[] b,
                           int off,
                           int len)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • input

        public void input​(byte[] b,
                          int off,
                          int len)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • output

        public void output​(byte[] b)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • input

        public void input​(byte[] b)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • output

        public void output​(int b)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • input

        public void input​(int b)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • output

        public void output​(java.lang.String s)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • input

        public void input​(java.lang.String s)
                   throws java.io.IOException
        Throws:
        java.io.IOException