6321N/A * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * Abstract File Writer class. 0N/A * @author Jan Borgersen 0N/A // buffer size for write 0N/A // buffer size for temporary input streams 0N/A * Constructs a new SunParser object. 0N/A // METHODS TO IMPLEMENT AudioFileWriter 0N/A * Protected helper method to read 64 bits and changing the order of 0N/A * @param DataInputStream 0N/A * @return 32 bits swapped value. 0N/A * @exception IOException 0N/A b1 = ( i &
0xFF ) <<
24 ;
0N/A b2 = ( i &
0xFF00 ) <<
8;
0N/A b3 = ( i &
0xFF0000 ) >>
8;
0N/A b4 = ( i &
0xFF000000 ) >>>
24;
0N/A * Protected helper method to swap the order of bytes in a 32 bit int 0N/A * @return 32 bits swapped value 0N/A b1 = ( i &
0xFF ) <<
24 ;
0N/A b2 = ( i &
0xFF00 ) <<
8;
0N/A b3 = ( i &
0xFF0000 ) >>
8;
0N/A b4 = ( i &
0xFF000000 ) >>>
24;
0N/A * Protected helper method to read 16 bits value. Swap high with low byte. 0N/A * @param DataInputStream 0N/A * @return the swapped value. 0N/A * @exception IOException 0N/A high = (
short)(( s &
0xFF ) <<
8) ;
0N/A low = (
short)(( s &
0xFF00 ) >>>
8);
0N/A * Protected helper method to swap the order of bytes in a 16 bit short 0N/A * @return 16 bits swapped value 0N/A high = (
short)(( i &
0xFF ) <<
8) ;
0N/A low = (
short)(( i &
0xFF00 ) >>>
8);
3628N/A * InputStream wrapper class which prevent source stream from being closed. 3628N/A * The class is usefull for use with SequenceInputStream to prevent 3628N/A * closing of the source input streams. 3628N/A // don't propagate the call