Chris Smith
93a13422d1
Put MapList to rest.
ConfigFile can manually do it - it's not that much more work.
Everything in DMDirc has been moved to use Guava's Multimap.
hace 9 años
Greg Holmes
b64a5ad189
Improve TextFile unit test, and delete unused ctor.
hace 9 años
Shane Mc Cormack
eb2bfe4c84
2015!
hace 9 años
Greg Holmes
c360bd8afd
Remove unused constructors in ConfigFile.
hace 9 años
Greg Holmes
20608b13fc
Tidy up TextFile a bit.
hace 9 años
Greg Holmes
fdabe904f0
Use Streams in TextFile.
hace 9 años
Greg Holmes
d51ed35a4e
Generic class for functions.
hace 9 años
Greg Holmes
856bdeaec8
Add unit test.
hace 9 años
Greg Holmes
e91abf5d35
Move indeterminate setting into listening stream.
hace 9 años
Greg Holmes
0b1b21f957
Add URL Encoding back.
hace 9 años
Greg Holmes
4dde7c5d86
Re-add listener support.
hace 9 años
Greg Holmes
c7d9420b9a
Tidy up downloader.
hace 9 años
Greg Holmes
b699f94261
Delete some StreamUtils.
hace 9 años
Greg Holmes
f84c8a1b16
Hack FileUtils to provide copycontents methods.
hace 9 años
Chris Smith
b5256854b7
Add method to FileUtils to get a Path.
This maintains a FileSystem pointing at the jar the application is
running from, which can be used to get Paths for bundled resources.
hace 9 años
Greg Holmes
a9aa3e869f
Switch to Java8 methods for TextFile.
hace 9 años
Greg Holmes
807572c8fc
Tidying
hace 9 años
Greg Holmes
c0e532e93e
Add a couple of methods to determine how an application was launched.
Change-Id: I20d3a7b908bbeae833ffffe0598b99bde47021c7
Reviewed-on: http://gerrit.dmdirc.com/4073
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 9 años
Greg Holmes
57bcea0572
Hide StreamReader behind StreamUtils.
Change-Id: Ia24b29f2fcd414d7b27bad52cc6fad6312179de5
Reviewed-on: http://gerrit.dmdirc.com/4067
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
hace 9 años
Chris Smith
93594b6bd6
Remove pointless method.
Sockets are closeable now. Woo.
Change-Id: I1d58c907dd38e515b25273685d37e3650c03042f
Reviewed-on: http://gerrit.dmdirc.com/4065
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 9 años
Greg Holmes
60e9f7d9cd
Remove deprecated methods.
Change-Id: I5ad29260862e3e9983a7031549bb5e6296551859
Reviewed-on: http://gerrit.dmdirc.com/4055
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
hace 9 años
Chris Smith
9d279109f1
Fix copying resources from zip files.
FileSystems aren't as automatic as I expected :(
Change-Id: I5fe47086e86e3812dfa463bf1125ae02d1df3633
Reviewed-on: http://gerrit.dmdirc.com/4062
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 9 años
Greg Holmes
aad1578811
Unit test for Downloader
Change-Id: I3b054eb2144f51bc0b5935ee24525616dc042a4e
Reviewed-on: http://gerrit.dmdirc.com/4047
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 9 años
Chris Smith
f6b56531d3
Make ReverseFileReader autocloseable.
Because why not?
Change-Id: I996ff53c4bb7bd0d237691c260ed7dc55e6499fa
Reviewed-on: http://gerrit.dmdirc.com/4048
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 9 años
Greg Holmes
87e3c1343d
Make ReverseFileReader use Paths.
Change-Id: I921a395e088846216650d1ac14207cb915a6bb8c
Reviewed-on: http://gerrit.dmdirc.com/4045
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
hace 9 años
Chris Smith
2b76d27c6f
Couple of bug fixes.
Don't try and resole using a path from another FS provider.
Create paths via URIs not via strings, as otherwise it gets
confused with protocols.
Change-Id: Ibb33317ee9ce8d1567535e464c8f59667ea5e65a
Reviewed-on: http://gerrit.dmdirc.com/4043
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 9 años
Chris Smith
76ba1d77e2
Add FileUtils.
Not tested or used yet :)
Change-Id: If34cc6520c3d05ed33c6d82eac2e2fbcba99a688
Reviewed-on: http://gerrit.dmdirc.com/4042
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
hace 9 años
Chris Smith
397bc5d06b
Unused methods
Change-Id: I17a4c8320988fd24250eeee6cab1229b9c9a2279
Reviewed-on: http://gerrit.dmdirc.com/4012
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 9 años
Chris Smith
5b7f3a9358
Allow ConfigFile to work on Paths.
Apply a bunch of style fixes.
Change-Id: I314e09dcebabcce452881754ef370c2495692030
Reviewed-on: http://gerrit.dmdirc.com/4000
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
hace 9 años
Chris Smith
7ba58d10ca
Tidying.
Remove pointless super() calls.
Remove redundant interface decs.
Remove unnecessary enum annotations.
Change .length == 0 to .isEmpty.
Change-Id: I80c52ef8c39d9fc45038921285dd85bba6b397d4
Reviewed-on: http://gerrit.dmdirc.com/3843
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
hace 9 años
Chris Smith
40a3a41c2e
Final the couple of things.
Change-Id: Ib2153bdebbdbee234ba593da4ccdb7969ee23aed
Reviewed-on: http://gerrit.dmdirc.com/3838
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 9 años
Chris Smith
4edb6a6996
Tidying
Change-Id: Ib6f8bf58d07d0c23369b41e8eda94ac4a36774b7
Reviewed-on: http://gerrit.dmdirc.com/3802
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 9 años
Greg Holmes
30f4b1f3f2
Switch to AutoClose instead of StreamUtils.
Change-Id: I7cfa545b8524fa5fc49606bd11006c37969fd78f
Reviewed-on: http://gerrit.dmdirc.com/3792
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
hace 9 años
Chris Smith
1f46714477
Minor tidying
Change-Id: If6e8898bb70dfc6390267a8f8066d93bf844dc0a
Reviewed-on: http://gerrit.dmdirc.com/3688
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
hace 10 años
Chris Smith
1d881ab486
Fix some redundent exceptions
Change-Id: I7ff972c3ca8eab51c20c36d88fbc57ab240184f0
Reviewed-on: http://gerrit.dmdirc.com/3684
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
hace 10 años
Greg Holmes
7170cf601e
Make Downloader non static
Change-Id: I5200f8d84e409cb71c5f7338bca18af6de4c0726
Reviewed-on: http://gerrit.dmdirc.com/3600
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
hace 10 años
Chris Smith
4e6bf2d20b
Make some fields in TextFile final.
Change-Id: Ib918ce2dcad368a3d8ad14aa44d3a42bf0f4cb22
Reviewed-on: http://gerrit.dmdirc.com/3508
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 10 años
Chris Smith
a48c210ddd
Allow null Files to be passed to TextFile again.
We do this for temporary configuration files which are never saved
(e.g. the addon settings). It's a bit of a kludge, but for now we
should maintain it.
Change-Id: I656b924221eded5bbd98dfa4c276ab6d43b682e0
Fixes-Issue: CLIENT-510
Reviewed-on: http://gerrit.dmdirc.com/3507
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
hace 10 años
Greg Holmes
3f4f28c3cc
Add Path support to TextFile.
Change-Id: I752f5bebe42514f1dc21e1b77e1ee5a649f324f5
Depends-On: I9463e66dc39881bcc69b64b8900df1010683b0bc
Depends-On: I752f5bebe42514f1dc21e1b77e1ee5a649f324f5
Depends-On: I4fa54ebe8f4ff93c8fc33504af66338eda01d0b8
Reviewed-on: http://gerrit.dmdirc.com/3502
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
hace 10 años
Shane Mc Cormack
bd00847b40
Update Copyright to 2014
Change-Id: Id44b617ffa590a8562fa5f6f79eaeb55fb432075
Reviewed-on: http://gerrit.dmdirc.com/2980
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
hace 10 años
Greg Holmes
779a61d876
Java 7 conversions
Change-Id: Ib05f625f14ab2f486f0c83c47c860dd0f0ef3ba1
Reviewed-on: http://gerrit.dmdirc.com/2896
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
hace 10 años
Shane Mc Cormack
b23cd03717
Update copyright for 2013
Change-Id: Iaaa1509b9f33742a5a2f5d9d6f4608432ddeaaaa
Reviewed-on: http://gerrit.dmdirc.com/2606
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 11 años
Greg Holmes
093f9e66e9
Add support for closing Sockets (could be removed if we switched to Java7)
Change-Id: I34aa3a772f7f777aa31ca6a243ad51bdc86fbb8e
Reviewed-on: http://gerrit.dmdirc.com/2462
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
hace 12 años
Chris Smith
7c2788db0e
Add ReverseFileReader from logging plugin
Change-Id: I8fcf1d9e686834dfad9d93c177b97b0ea19fd742
Reviewed-on: http://gerrit.dmdirc.com/2325
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 12 años
Shane Mc Cormack
9ae77fc1aa
Update copyright for 2012
Change-Id: Ib1ec0d7b74ea50a9c49c81e7d4320d51457812d9
Reviewed-on: http://gerrit.dmdirc.com/2290
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 12 años
Chris Smith
7e0b83a0c8
Tidy up util classes
Change-Id: I6d0665e57f6e0e2ff2fb6a18742acb99010e79bf
Depends-On: I0bfd2dc61096dd9670b269463c27d9b00fd9a917
Depends-On: Ia8de3c1a5fdc1eb9cfaa8b29a32bb3efb6d8ce6f
Reviewed-on: http://gerrit.dmdirc.com/2240
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
hace 12 años