code: public void setLineJoinStyle (final int lineJoinStyle) throws IOException
    {
      if (inTextMode)
      {
        throw new IllegalStateException ("Error: setLineJoinStyle is not allowed within a text block.");
      }
      if (lineJoinStyle >= 0 && lineJoinStyle <= 2)
      {
        writeOperand (lineJoinStyle);
        writeOperator ((byte) 'j');
      }
      else
      {
        throw new IllegalArgumentException ("Error: unknown value for line join style");
      }
    }
docs: Set the line join style.
  
  @param lineJoinStyle
  0 for miter join, 1 for round join, and 2 for bevel join.
  @throws IOException
  If the content stream could not be written.
  @throws IllegalStateException
  If the method was called within a text block.
  @throws IllegalArgumentException
  If the parameter is not a valid line join style.