Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement simple functionality for relative HttpPath #12

Open
2 of 9 tasks
magicDGS opened this issue Jan 9, 2018 · 0 comments
Open
2 of 9 tasks

Implement simple functionality for relative HttpPath #12

magicDGS opened this issue Jan 9, 2018 · 0 comments

Comments

@magicDGS
Copy link
Owner

magicDGS commented Jan 9, 2018

We should implement a relative HttpPathto get parts of the Path (file name, directory name, etc), and also iterate over paths. This support should include:

  • Add offsets field (int[]) for easier splitting the directory (as in other path implementations)
  • isAbsolute() returning false for this paths
  • toAbsolutePath() should return an absolute path sited on the root
  • getFileName
  • getParent
  • getNameCount
  • getName(int)
  • subpath
  • iterator - using getName(int)

In addition, this relative Paths should fail for constructing an URI (no relative paths there), with a meaningful error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant