buf.setLength(buf.length() - 1);
if(!trailingEOL) buf.setLength(buf.length() - 1);
		public String toString()		{			Clipboard clipboard = Toolkit.getDefaultToolkit()				.getSystemClipboard();			try			{				String selection = (String)(clipboard					.getContents(this).getTransferData(					DataFlavor.stringFlavor));				// Some Java versions return the clipboard				// contents using the native line separator,				// so have to convert it here				BufferedReader in = new BufferedReader(					new StringReader(selection));				StringBuffer buf = new StringBuffer();				String line;				while((line = in.readLine()) != null)				{					buf.append(line);					buf.append('\n');				}				// remove trailing \n				buf.setLength(buf.length() - 1);				return buf.toString();			}			catch(Exception e)			{				Log.log(Log.NOTICE,this,e);				return null;			}		}