1384N/A * The contents of this file are subject to the terms of the 1384N/A * Common Development and Distribution License (the "License"). 1384N/A * You may not use this file except in compliance with the License. 1384N/A * language governing permissions and limitations under the License. 1384N/A * When distributing Covered Code, include this CDDL HEADER in each 1384N/A * If applicable, add the following below this CDDL HEADER, with the 1384N/A * fields enclosed by brackets "[]" replaced with your own identifying 1384N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1384N/A * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 1384N/A * Portions Copyright 2012 Jens Elkner. 1384N/A * An UTF-8 OutputStreamWriter used to write Xref files. 1384N/A * file with the given name. 1384N/A * @param genre the genre of the data to be written. 1384N/A * file with the given name. 1384N/A * @param genre the genre of the data to be written. 1384N/A * @param compress if {@code true} written data gets compressed. 1384N/A * @param file file to write 1384N/A * @param genre the genre of the data to be written. 1384N/A // prevent wrapper streams from closing it 1384N/A * @param file file to write 1384N/A * @param genre the genre of the data to be written. 1384N/A * @param compress if {@code true} written data gets compressed. 1384N/A * @throws FileNotFoundException 1384N/A * Just wraps the given writer. {@link #close()} on this instance gets 1384N/A * ignored and thus no header will be written or updated. 1384N/A * @param out writer to wrap. 1384N/A * Get the number of bytes written to the output stream. 1384N/A * @see FileChannel#position() 1384N/A * Get the file this instance is writing to. 1384N/A * @return {@code null} if this instance wraps another writer, the file 1384N/A * used to create this instance otherwise. 1384N/A * Remember the number of characters currently written to the underlying 1384N/A * output stream. NOTE: This method is unsynchronized and thus may return 1384N/A * an unexpected value if characters are written concurrently! 1384N/A * @return the value of {@link #getCount()} 1384N/A * Get the number of characters written to the underlying 1384N/A * output stream at the last time when {@link #mark()} was called. 1384N/A * @return {@code -1} if {@code mark()} has never been called, otherwise 1384N/A * the value the last {@code mark()} returned. 1384N/A * Set the number of lines written to this stream. 1384N/A * @param lines number of lines writen.