/** * Sets the line separator sequence to use when this file is saved (e.g. * "<code>\n</code>", "<code>\r\n</code>" or "<code>\r</code>"). * * Besides parameter checking, this method is preferred over * <code>getDocument().putProperty()</code> because it sets the editor's * dirty flag when the line separator is changed. * * @param separator The new line separator. * @throws NullPointerException If <code>separator</code> is * <code>null</code>. * @throws IllegalArgumentException If <code>separator</code> is not one * of "<code>\n</code>", "<code>\r\n</code>" or "<code>\r</code>". * @see #getLineSeparator() */ public void setLineSeparator(String separator) { setLineSeparator(separator, true); }
setLineSeparator(System.getProperty("line.separator"));
/** * Sets the line separator sequence to use when this file is saved (e.g. * "<code>\n</code>", "<code>\r\n</code>" or "<code>\r</code>"). * * Besides parameter checking, this method is preferred over * <code>getDocument().putProperty()</code> because it sets the editor's * dirty flag when the line separator is changed. * * @param separator The new line separator. * @throws NullPointerException If <code>separator</code> is * <code>null</code>. * @throws IllegalArgumentException If <code>separator</code> is not one * of "<code>\n</code>", "<code>\r\n</code>" or "<code>\r</code>". * @see #getLineSeparator() */ public void setLineSeparator(String separator) { setLineSeparator(separator, true); }
/** * Sets the line separator sequence to use when this file is saved (e.g. * "<code>\n</code>", "<code>\r\n</code>" or "<code>\r</code>"). * * Besides parameter checking, this method is preferred over * <code>getDocument().putProperty()</code> because it sets the editor's * dirty flag when the line separator is changed. * * @param separator The new line separator. * @throws NullPointerException If <code>separator</code> is * <code>null</code>. * @throws IllegalArgumentException If <code>separator</code> is not one * of "<code>\n</code>", "<code>\r\n</code>" or "<code>\r</code>". * @see #getLineSeparator() */ public void setLineSeparator(String separator) { setLineSeparator(separator, true); }
/** * Sets the line separator sequence to use when this file is saved (e.g. * "<code>\n</code>", "<code>\r\n</code>" or "<code>\r</code>"). * * Besides parameter checking, this method is preferred over * <code>getDocument().putProperty()</code> because it sets the editor's * dirty flag when the line separator is changed. * * @param separator The new line separator. * @throws NullPointerException If <code>separator</code> is * <code>null</code>. * @throws IllegalArgumentException If <code>separator</code> is not one * of "<code>\n</code>", "<code>\r\n</code>" or "<code>\r</code>". * @see #getLineSeparator() */ public void setLineSeparator(String separator) { setLineSeparator(separator, true); }
setLineSeparator(System.getProperty("line.separator"));
setLineSeparator(System.getProperty("line.separator"));
setLineSeparator(System.getProperty("line.separator"));