public class ShiftData extends Object
Constructor and Description |
---|
ShiftData() |
Modifier and Type | Method and Description |
---|---|
static void |
shiftDataByOffsetToMakeSpace(SeekableByteChannel fc,
int offset)
Shift the remainder of data from current position to position + offset
Reads/writes starting from end of file in chunks so works on large files on low memory systems
|
static void |
shiftDataByOffsetToShrinkSpace(SeekableByteChannel fc,
int shrinkBy)
Used by ID3 to shrink space by shrinkBy bytes before current position
|
public static void shiftDataByOffsetToMakeSpace(SeekableByteChannel fc, int offset) throws IOException
fc
- offset
- (if negative writes the data earlier (i,e smaller file)IOException
CannotWriteException
public static void shiftDataByOffsetToShrinkSpace(SeekableByteChannel fc, int shrinkBy) throws IOException
fc
- shrinkBy
- IOException
Copyright © 2005–2020 jthink.net. All rights reserved.