uk.co.bigbeeconsultants.http.util

HttpUtil

object HttpUtil

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HttpUtil
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val DEFAULT_BUFFER_SIZE: Int

  7. val EmptyArray: Array[Byte]

  8. val EmptyBuffer: ByteBuffer

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def captureBytes(copyTo: (OutputStream) ⇒ Unit): Array[Byte]

    Captures the bytes from an output stream in a buffer.

    Captures the bytes from an output stream in a buffer.

    copyTo

    the function that recevies an output stream

    returns

    the byte array

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def copyArray(bytes: Array[Byte], output: OutputStream): Long

    Directly copies the bytes from a buffer to an output stream.

    Directly copies the bytes from a buffer to an output stream.

    bytes

    the input stream

    output

    the output stream

    returns

    the number of bytes copied

    Annotations
    @throws( classOf[IOException] )
  13. def copyBytes(input: InputStream, output: OutputStream): Long

    Directly copies the bytes from an input stream to an output stream, using only a small intermediate buffer.

    Directly copies the bytes from an input stream to an output stream, using only a small intermediate buffer.

    input

    the input stream

    output

    the output stream

    returns

    the number of bytes copied

    Annotations
    @throws( classOf[IOException] )
  14. def copyString(string: String, output: OutputStream, charset: String = HttpClient.UTF8, alter: (String) ⇒ String = NoChangeTextFilter): Unit

    Copies the text from a string to an output stream line by line, allowing alteration of the text.

    Copies the text from a string to an output stream line by line, allowing alteration of the text. This might be used to rewrite URLs in body content, for example.

    string

    the source text

    output

    the output stream

    charset

    the character set, default UTF-8

    alter

    an optional function for changing each line of text before writing it out. This is applied line by line.

    Annotations
    @throws( classOf[IOException] )
  15. def copyText(input: InputStream, output: OutputStream, charset: String = HttpClient.UTF8, alter: (String) ⇒ String = NoChangeTextFilter): Unit

    Copies the text from an input stream to an output stream line by line, allowing alteration of the text.

    Copies the text from an input stream to an output stream line by line, allowing alteration of the text. This might be used to rewrite URLs in body content, for example.

    input

    the input stream

    output

    the output stream

    charset

    the character set, default UTF-8

    alter

    an optional function for changing each line of text before writing it out. This is applied line by line.

    Annotations
    @throws( classOf[IOException] )
  16. def copyToByteArrayAndClose(inputStream: InputStream, initialSize: Int): Array[Byte]

    Copies the bytes from an input stream into a new byte array, then closes the input stream.

    Copies the bytes from an input stream into a new byte array, then closes the input stream.

    inputStream

    the input stream

    initialSize

    the initial size of the buffer

    returns

    the new byte array

    Annotations
    @throws( classOf[IOException] )
  17. def copyToByteArrayAndClose(inputStream: InputStream): Array[Byte]

    Copies the bytes from an input stream into a new byte buffer, then closes the input stream.

    Copies the bytes from an input stream into a new byte buffer, then closes the input stream.

    inputStream

    the input stream

    returns

    the new byte buffer

    Annotations
    @throws( classOf[IOException] )
  18. def count(str: String, sep: Char): Int

    Efficiently counts all occurrences of a given character within a string.

  19. def divide(str: String, sep: Char): (String, String)

    Efficiently divides a string at the first occurrence of a separator character.

    Efficiently divides a string at the first occurrence of a separator character.

    returns

    a tuple of the string before and the string after the separator

  20. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. def quote(str: String): String

    Adds surrounding double quotes from a string.

  30. def split(str: String, sep: Char): List[String]

    Efficiently splits a string at all occurrences of a given character.

    Efficiently splits a string at all occurrences of a given character. The returned list always contains at least one item, even if it is blank.

  31. def splitQuoted(str: String, sep: Char, quoteMark: Char = '"'): List[String]

    Efficiently splits a string at all occurrences of a given character except those inside double quotes.

    Efficiently splits a string at all occurrences of a given character except those inside double quotes. The returned list always contains at least one item, even if it is blank.

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. def unquote(str: String): String

    Removes surrounding double quotes from a string.

  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def copyToByteBufferAndClose(inputStream: InputStream, initialSize: Int): ByteBuffer

    Copies the bytes from an input stream into a new byte buffer, then closes the input stream.

    Copies the bytes from an input stream into a new byte buffer, then closes the input stream.

    inputStream

    the input stream

    initialSize

    the initial size of the buffer

    returns

    the new byte buffer

    Annotations
    @deprecated @throws( classOf[IOException] )
    Deprecated

    (Since version since v0.21.5) No longer needed

  2. def copyToByteBufferAndClose(inputStream: InputStream): ByteBuffer

    Copies the bytes from an input stream into a new byte buffer, then closes the input stream.

    Copies the bytes from an input stream into a new byte buffer, then closes the input stream.

    inputStream

    the input stream

    returns

    the new byte buffer

    Annotations
    @deprecated @throws( classOf[IOException] )
    Deprecated

    (Since version since v0.21.5) No longer needed

Inherited from AnyRef

Inherited from Any

Ungrouped