Class Wire

java.lang.Object
org.apache.hc.client5.http.impl.Wire

@Internal public class Wire extends Object
  • Field Details

  • Constructor Details

    • Wire

      public Wire(org.slf4j.Logger log, String id)
  • Method Details

    • getStringBuilder

      private static StringBuilder getStringBuilder()
      Returns a StringBuilder that this Layout implementation can use to write the formatted log event to.
      Returns:
      a StringBuilder
    • trimToMaxSize

      private static void trimToMaxSize(StringBuilder stringBuilder, int maxSize)
      Ensures that the char[] array of the specified StringBuilder does not exceed the specified number of characters. This method is useful to ensure that excessively long char[] arrays are not kept in memory forever.
      Parameters:
      stringBuilder - the StringBuilder to check
      maxSize - the maximum number of characters the StringBuilder is allowed to have
    • wire

      private void wire(String header, byte[] b, int pos, int off)
    • isEnabled

      public boolean isEnabled()
    • output

      public void output(byte[] b, int pos, int off)
    • input

      public void input(byte[] b, int pos, int off)
    • output

      public void output(byte[] b)
    • input

      public void input(byte[] b)
    • output

      public void output(int b)
    • input

      public void input(int b)
    • output

      public void output(String s)
    • input

      public void input(String s)
    • output

      public void output(ByteBuffer b)
    • input

      public void input(ByteBuffer b)