JBBPTextWriter extends FilterWriter { public final JBBPTextWriter ByteOrder(final JBBPByteOrder order) { JBBPUtils.assertNotNull(order, "Byte order must not be null"); this.byteOrder = order; return this; } JBBPTextWriter();  JBBPTextWriter(final Writer out);  JBBPTextWriter(final Writer out, final JBBPByteOrder byteOrder);  JBBPTextWriter(
      final Writer out,
      final JBBPByteOrder byteOrder,
      final String lineSeparator,
      final int radix,
      final String valuePrefix,
      final String startValueLinePrefix,
      final String commentPrefix,
      final String hrPrefix,
      final String valueDelimiter); static JBBPTextWriter makeStrWriter(); Writer getWrappedWriter(); JBBPByteOrder getByteOrder(); int getRadix(); String getLineSeparator(); JBBPTextWriter EnableComments(); JBBPTextWriter DisableComments(); JBBPTextWriter Str(final String... str); JBBPTextWriter Byte(final int value); JBBPTextWriter Byte(final String value); JBBPTextWriter Byte(final byte[] values); JBBPTextWriter Byte(final byte[] array, int off, int len); boolean isLineStart(); boolean isComments(); boolean isValues(); final JBBPTextWriter SetValueLinePrefix(final String text); final JBBPTextWriter SetValuePrefix(final String text); final JBBPTextWriter SetValuePostfix(final String text); final JBBPTextWriter SetCommentPrefix(final String text); final JBBPTextWriter SetValueSeparator(final String text); JBBPTextWriter AddExtras(final Extra... extras); JBBPTextWriter DelExtras(final Extra... extras); JBBPTextWriter SetMaxValuesPerLine(final int value); JBBPTextWriter SetTabSpaces(final int numberOfSpacesPerTab); final JBBPTextWriter ByteOrder(final JBBPByteOrder order); final JBBPTextWriter Radix(final int radix); JBBPTextWriter Short(final int value); JBBPTextWriter Float(final float value); JBBPTextWriter Double(final double value); JBBPTextWriter Short(final String value); JBBPTextWriter Short(final short[] values); JBBPTextWriter Float(final float[] values); JBBPTextWriter Double(final double[] values); JBBPTextWriter Short(final short[] values, int off, int len); JBBPTextWriter Float(final float[] values, int off, int len); JBBPTextWriter Double(final double[] values, int off, int len); JBBPTextWriter Int(final int value); JBBPTextWriter Int(final int[] values); JBBPTextWriter Int(final int[] values, int off, int len); JBBPTextWriter IndentInc(); JBBPTextWriter IndentInc(final int count); JBBPTextWriter IndentDec(); JBBPTextWriter IndentDec(final int count); JBBPTextWriter Long(final long value); JBBPTextWriter Long(final long[] values); JBBPTextWriter Long(final long[] values, int off, int len); JBBPTextWriter BR(); JBBPTextWriter SetHR(final String prefix, final int length, final char ch); JBBPTextWriter HR(); JBBPTextWriter Comment(final String... comment); @Override String toString(); JBBPTextWriter Obj(final int objId, final Object... obj); JBBPTextWriter Obj(final int objId, final Object[] array, int off, int len); JBBPTextWriter Bin(final Object... objs); JBBPTextWriter Close(); @Override void close(); JBBPTextWriter Flush(); @Override void flush(); JBBPTextWriter Tab(); JBBPTextWriter Space(final int numberOfSpaces); int getLine(); int getLinePosition(); @SuppressWarnings("NullableProblems") @Override void write(final String str); @SuppressWarnings("NullableProblems") @Override void write(final char[] cbuf); @Override void write(final String str, int off, int len); @Override void write(final char[] cbuf, int off, int len); @Override void write(final int c); @Override Writer append(final char c); @Override Writer append(final CharSequence csq, final int start, final int end); @Override Writer append(final CharSequence csq);  }
@Test public void testByteOrder() throws Exception { final JBBPTextWriter writer = makeWriter(); writer.ByteOrder(JBBPByteOrder.LITTLE_ENDIAN); assertEquals(JBBPByteOrder.LITTLE_ENDIAN, writer.getByteOrder()); writer.ByteOrder(JBBPByteOrder.BIG_ENDIAN); assertEquals(JBBPByteOrder.BIG_ENDIAN, writer.getByteOrder()); }