ByteStringConverter (JavaFX 28)
Description: declaration: module: javafx.base, package: javafx.util.converter, class: ByteStringConverter

# Class ByteStringConverter

java.lang.Object
javafx.util.StringConverter<Byte>
javafx.util.converter.ByteStringConverter

public class ByteStringConverter extends StringConverter<Byte>
A `StringConverter` implementation for `Byte` (and `byte`) values. Formatting is done by `Byte.toString()` for non-`null` values, and parsing with `Byte.valueOf(String)` for non-`null` non-empty strings.

Since:
  JavaFX 2.1

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ByteStringConverter()`
  Creates a default `ByteStringConverter`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Byte`
  `fromString(String value)`
  Converts a string to an object.
  `String`
  `toString(Byte value)`
  Converts an object to a string form.

  ### Methods declared in class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ByteStringConverter

    public ByteStringConverter()
    Creates a default `ByteStringConverter`.

- ## Method Details

  - ### fromString

    public Byte fromString(String value)
    Converts a string to an object. The parsing mechanism is defined by the specific converter. `null` and empty string are converted to `null`.
    Parameters:
      `value` - the `String` to convert
    Returns:
      an object of type `T` created from the string passed in

  - ### toString

    public String toString(Byte value)
    Converts an object to a string form. The format of the returned string is defined by the specific converter. `null` is converted to an empty string, otherwise the type's `toString` is used.
    Parameters:
      `value` - the object of type `T` to convert
    Returns:
      a string representation of the object passed in