public static class Sort.ByteSequencesWriter
extends java.lang.Object
implements java.io.Closeable
Sort.ByteSequencesReader
.Constructor and Description |
---|
ByteSequencesWriter(java.io.DataOutput os) |
ByteSequencesWriter(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the provided
DataOutput if it is Closeable . |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int off,
int len) |
void |
write(BytesRef ref) |
public ByteSequencesWriter(java.io.File file) throws java.io.IOException
java.io.IOException
public ByteSequencesWriter(java.io.DataOutput os)
public void write(BytesRef ref) throws java.io.IOException
java.io.IOException
public void write(byte[] bytes) throws java.io.IOException
java.io.IOException
public void write(byte[] bytes, int off, int len) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
DataOutput
if it is Closeable
.close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.