- Joined
- Aug 12, 2009
- Messages
- 1,810
- Reaction score
- 606
Commons Collection ListUtils can do the same as array_slice in 1 line iirc. But as far as i know you can't scan an entire directory as easily. I've never really enjoyed the java file utils.
You'd probably have to write a small fileSearcher and call that in order to keep it as one liners on all those lines. I'm convinced java can do the same as PHP, and probably more, but it's not always tailored to specific use as much
Well I figured it had a bit of limitation but it's still possible, I feel Java should be used for more complex things though GD scripts are just cleaning XML and loads of arrays and looping lol.
-----------
Update: Added Hair script(had to make a function for sourcing due to hairShade being a imgdir and need to call sourcing twice, i rather make a function out of it lol)
It includes hairShade, removal of duplicates, support on hairBelowHead, etc.
Out of 5,880 XML files, 5,856 were converted to JSON files.