001 /*
002 * Copyright (c) Andrey Kuznetsov. All Rights Reserved.
003 *
004 * http://uio.imagero.com
005 *
006 * Redistribution and use in source and binary forms, with or without
007 * modification, are permitted provided that the following conditions are met:
008 *
009 * o Redistributions of source code must retain the above copyright notice,
010 * this list of conditions and the following disclaimer.
011 *
012 * o Redistributions in binary form must reproduce the above copyright notice,
013 * this list of conditions and the following disclaimer in the documentation
014 * and/or other materials provided with the distribution.
015 *
016 * o Neither the name of Andrey Kuznetsov nor the names of
017 * its contributors may be used to endorse or promote products derived
018 * from this software without specific prior written permission.
019 *
020 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
021 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
022 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
023 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
024 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
025 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
026 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
027 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
028 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
029 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
030 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
031 */
032 package com.imagero.uio;
033
034 import java.io.DataOutput;
035 import java.io.IOException;
036
037 /**
038 * @author Andrey Kuznetsov
039 */
040 public interface AdvancedDataOutput extends DataOutput {
041 void write(short[] data) throws IOException;
042
043 void write(short[] data, int byteOrder) throws IOException;
044
045 void write(short[] data, int offset, int length) throws IOException;
046
047 void write(short[] data, int offset, int length, int byteOrder) throws IOException;
048
049 void write(char[] data) throws IOException;
050
051 void write(char[] data, int byteOrder) throws IOException;
052
053 void write(char[] data, int offset, int length) throws IOException;
054
055 void write(char[] data, int offset, int length, int byteOrder) throws IOException;
056
057 void write(int[] data) throws IOException;
058
059 void write(int[] data, int byteOrder) throws IOException;
060
061 void write(int[] data, int offset, int length) throws IOException;
062
063 void write(int[] data, int offset, int length, int byteOrder) throws IOException;
064
065 void write(float[] data) throws IOException;
066
067 void write(float[] data, int byteOrder) throws IOException;
068
069 void write(float[] data, int offset, int length) throws IOException;
070
071 void write(float[] data, int offset, int length, int byteOrder) throws IOException;
072
073 void write(long[] data) throws IOException;
074
075 void write(long[] data, int byteOrder) throws IOException;
076
077 void write(long[] data, int offset, int length) throws IOException;
078
079 void write(long[] data, int offset, int length, int byteOrder) throws IOException;
080
081 void write(double[] data) throws IOException;
082
083 void write(double[] data, int byteOrder) throws IOException;
084
085 void write(double[] data, int offset, int length) throws IOException;
086
087 void write(double[] data, int offset, int length, int byteOrder) throws IOException;
088
089 void writeShort(int v, int byteOrder) throws IOException;
090
091 void writeChar(int v, int byteOrder) throws IOException;
092
093 void writeInt(int v, int byteOrder) throws IOException;
094
095 void writeLong(long v, int byteOrder) throws IOException;
096
097 void writeFloat(float v, int byteOrder) throws IOException;
098
099 void writeDouble(double v, int byteOrder) throws IOException;
100
101 }