code: public void setLineDashPattern (final float [] pattern, final float phase) throws IOException
    {
      if (inTextMode)
      {
        throw new IllegalStateException ("Error: setLineDashPattern is not allowed within a text block.");
      }
      write ((byte) '[');
      for (final float value : pattern)
      {
        writeOperand (value);
      }
      write ((byte) ']', (byte) ' ');
      writeOperand (phase);
      writeOperator ((byte) 'd');
    }
docs: Set the line dash pattern.
  
  @param pattern
  The pattern array
  @param phase
  The phase of the pattern
  @throws IOException
  If the content stream could not be written.
  @throws IllegalStateException
  If the method was called within a text block.