58 |
|
|
59 |
public MappedCharFileBuffer(FileChannelImpl ch) |
public MappedCharFileBuffer(FileChannelImpl ch) |
60 |
{ |
{ |
61 |
|
// FIXME |
62 |
|
super (0, 0, 0, 0); |
63 |
this.ch = ch; |
this.ch = ch; |
64 |
address = ch.address; |
address = ch.address; |
|
try { |
|
|
long si = ch.size() / 2; |
|
|
limit((int)si); |
|
|
} catch (IOException e) { |
|
|
System.err.println("failed to get size of file-channel's file"); |
|
|
} |
|
65 |
} |
} |
66 |
|
|
67 |
public MappedCharFileBuffer(MappedCharFileBuffer b) |
public MappedCharFileBuffer(MappedCharFileBuffer b) |
68 |
{ |
{ |
69 |
|
// FIXME |
70 |
|
super (0, 0, 0, 0); |
71 |
this.ro = b.ro; |
this.ro = b.ro; |
72 |
this.ch = b.ch; |
this.ch = b.ch; |
73 |
address = b.address; |
address = b.address; |
|
limit(b.limit()); |
|
74 |
} |
} |
75 |
|
|
76 |
final public ByteOrder order () |
final public ByteOrder order () |