com.joyzl.codec.LittleEndianOutputStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of odbs Show documentation
Show all versions of odbs Show documentation
Java对象序列化,同时支持二进制和JSON格式
The newest version!
/*-
* www.joyzl.net
* 中翌智联(重庆)科技有限公司
* Copyright © JOY-Links Company. All rights reserved.
*/
package com.joyzl.codec;
import java.io.IOException;
import java.io.OutputStream;
public class LittleEndianOutputStream extends OutputStream implements LittleEndianDataOutput {
private final OutputStream output;
public LittleEndianOutputStream(OutputStream out) {
output = out;
}
@Override
public void write(int b) throws IOException {
writeByte((byte) b);
}
@Override
public void writeByte(int b) throws IOException {
output.write(b);
}
}