87b02eb949
update copyright years
...
Previously, I used a shell script to extract modification date ranges
from the Git history, but that was complicated and unreliable, so now
every file just gets the same year range in its copyright header. If
someone needs to know when a specific file was modified and by whom,
they can look at the Git history themselves; no need to include it
redundantly in the header.
2013-07-02 20:52:38 -06:00
2d11e7ccd4
Add last modified to file
2013-02-09 09:42:23 +02:00
c8ca83836a
Fix RAF
2013-02-09 09:42:12 +02:00
f1b2b3f78d
RandomAccessFile
2013-02-09 09:42:12 +02:00
d6aff87ef9
Add java lang math methods
2013-02-09 09:42:11 +02:00
b1eb4b9718
Adds code to get the Scala REPL working
2013-01-30 04:31:38 +01:00
be952acbcb
classpath: Closeable & Flushable
2012-11-04 02:14:17 +01:00
e2416ddb85
strip trailing separators when normalizing java.io.File.path
...
This addresses the case of e.g. new File("c:/foo/").exists() returning
false when the specified directory really does exist.
2012-08-11 08:21:14 -06:00
c63668c1ce
fix ArrayIndexOutOfBoundsException when decoding a UTF-8 stream
2012-08-04 16:11:27 -06:00
836fc21106
fix bugs in File.getParent and listFiles
...
getParent should return the same value regardless of whether it ends
in a file separator, and listFiles should return null for
non-directories.
2012-07-31 09:27:18 -06:00
0addd8c814
update copyright years
2012-05-11 17:43:27 -06:00
1119675b7a
override InputStream.available for FileInputStream and the instance returned by ZipFile.getInputStream
2012-05-04 19:55:53 -06:00
4aefa211a3
File.createNewFile should return false if the file already exists
2012-03-13 08:26:51 -06:00
6c9a1e1643
add "throws IOException" to java.io.File.createTempFile
2012-03-11 04:57:22 -06:00
edc768f837
implement File.setExecutable(), File.canExecute(), and File.createTempFile()
2012-02-09 14:04:42 -07:00
b3850ac76d
Initial attempt at resolving SWT3.7 missing operatons in Avian. Everything seems to be working except floatToIntBits, hence the test case failing.
2011-12-28 15:52:53 -07:00
2b2a2e9446
Completion of previous fix.
2011-11-03 19:30:44 -06:00
216b9a05ea
RandomAccessFile now correctly reports lengths for growing files.
2011-11-03 13:39:24 -06:00
3b1c769d2b
Fixed RandomAccessFile to update position after reads.
2011-10-24 09:01:17 -06:00
39bee886e3
ByteBuffer and InputStream now better match the standard.
2011-10-20 13:45:47 -06:00
9d636c7ebb
Merge branch 'bufferedReaderFix'
2011-09-01 10:18:06 -06:00
6ea444f6bf
Fixed incorrect handling of \r\n
2011-09-01 10:17:21 -06:00
4cc5b5d902
Merge remote branch 'origin/bufferedReaderFix'
2011-09-01 09:35:28 -06:00
fb3a23f02d
Fixed behavior of readLine accepting *\n\n as a line, not two
2011-09-01 09:31:08 -06:00
97e03b9f28
Fixed possible ArrayIndexOutOfBounds exception
2011-09-01 09:11:39 -06:00
c75b06ddc1
Added support for non POSIX line endings. Will now accept: \r and \r\n as line endings (per Sun's JavaDoc)
2011-08-31 20:46:15 -06:00
3d7c65d314
implement File.getAbsolutePath()/File.getAbsoluteFile() on Unix platforms
2011-08-11 08:52:49 -06:00
7ed580cf84
fix boolean deserialization in ObjectInputStream
2011-08-11 08:52:09 -06:00
794a45cb79
fix various ObjectOutputStream/ObjectInputStream bugs
2011-07-01 08:43:43 -06:00
19856bc346
Changes for protobuf support
2011-06-21 14:37:08 -06:00
20baef4e69
implement File.toString
2011-03-25 19:12:47 -06:00
a8645b6b2d
fix BufferedInputStream.read regression
...
In commit 7fffba2
, I had modified BufferedInputStream.read to keep
reading until in.available() <= 0 or an EOF was reached, but neglected
to update the offset into the destination buffer after each read.
This caused the previously-read data to be overwritten. This commit
fixes that regression.
2011-02-08 18:56:25 -07:00
3a2a46499e
add Reader.mark/markSupported/reset
2011-01-20 09:34:46 -07:00
51c56c1b3c
add PrintStream.print[ln] overloads for primitives and char arrays
2011-01-20 08:26:56 -07:00
a5742f5985
update copyright years
2010-12-05 20:21:09 -07:00
d00f4c5390
fix BufferedInputStream.read to not read more than specified length
2010-12-01 15:41:55 -07:00
cb69ac23bd
Merge remote branch 'origin/master' into openjdk
...
Conflicts:
classpath/java/lang/String.java
src/posix.cpp
2010-11-03 11:54:41 -06:00
7fffba29e6
Keep reading in BufferedInputStream.read until in.available() <= 0
...
This corresponds to the documented behavior of OpenJDK's version.
2010-09-17 16:08:42 -06:00
6752505cb8
add File.canRead()/File.canWrite() implementation
2010-09-11 21:23:46 +02:00
5dadac2cb8
API additions for compatibility with harmony's java.util package
2010-09-11 21:23:46 +02:00
a26eb1b2b9
Fix missing flush in PrintStream
2010-09-05 09:07:18 -06:00
1daa93d3c4
add ability to append to files
2010-08-16 09:23:48 -06:00
f0f35a920f
return a useful value from InflaterInputStream.available
...
Note the following excerpt from PNGFileFormat.java in SWT:
/*
* InflaterInputStream does not consume all bytes in the stream
* when it is closed. This may leave unread IDAT chunks. The fix
* is to read all available bytes before closing it.
*/
while (stream.available() > 0) stream.read();
stream.close();
This code relies on the documented behavior of
InflaterInputStream.available, which must return "0 after EOF has been
reached, otherwise always return 1". This is unlike
InputStream.available, which is documented to return "the number of
bytes that can be read (or skipped over) from this input stream
without blocking by the next caller of a method for this input
stream", and says nothing about how many bytes are left until the end
of stream.
This commit modifies InflaterInputStream.available to behave according
to Sun's documentation.
2010-08-04 18:54:47 -06:00
a6998238d5
Additional of several interfaces which can be used in serialization
2010-05-10 10:17:06 -06:00
b6936fb597
optimized InputStreamReader.read()
2010-04-14 09:43:56 -06:00
b2f5e71d22
ARM and UTF-8 work
2010-04-14 09:26:50 -06:00
2c4e229e6e
convert forward slashes to back slashes in Windows paths
2010-01-11 08:31:01 -07:00
585dba004b
ignore redundant calls to File{In|Out}putStream.close
...
Previously, we threw an IOException, which did not match Sun's behavior.
2010-01-09 18:22:16 -07:00
9a056da2f7
increase default buffer size in BufferedInputStream
...
The previous value of 32 bytes did not perform well. This increases it to 4096 bytes, which matches BufferedOutputStream.
2010-01-09 18:20:15 -07:00
6118792ffd
update copyright years
2009-12-02 19:08:29 -07:00