Title: Bug in WriteBufferDataHandle: cannot seek to file end · Issue #478 · scijava/scijava-common · GitHub
Open Graph Title: Bug in WriteBufferDataHandle: cannot seek to file end · Issue #478 · scijava/scijava-common
X Title: Bug in WriteBufferDataHandle: cannot seek to file end · Issue #478 · scijava/scijava-common
Description: I tried to use WriteBufferDataHandle for optimizing writing TIFF, but it cannot be used: the simplest call out.seek(out.length()) (for writing to the end of the existing file) does not work. Just see your code: public void seek(final lon...
Open Graph Description: I tried to use WriteBufferDataHandle for optimizing writing TIFF, but it cannot be used: the simplest call out.seek(out.length()) (for writing to the end of the existing file) does not work. Just s...
X Description: I tried to use WriteBufferDataHandle for optimizing writing TIFF, but it cannot be used: the simplest call out.seek(out.length()) (for writing to the end of the existing file) does not work. Just s...
Opengraph URL: https://github.com/scijava/scijava-common/issues/478
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug in WriteBufferDataHandle: cannot seek to file end","articleBody":"I tried to use WriteBufferDataHandle for optimizing writing TIFF, but it cannot be used: the simplest call out.seek(out.length()) (for writing to the end of the existing file) does not work. Just see your code:\r\n```\r\n\tpublic void seek(final long pos) throws IOException {\r\n\t\tensureOpen();\r\n\t\tif (pos \u003e= length()) { //!!!!!\r\n\t\t\tthrow new EOFException();\r\n\t\t}\r\n\t\tflush();\r\n\t\toffset = pos;\r\n\t\thandle().seek(offset);\r\n\t}\r\n```\r\nBy the way, can we be sure that this class will work right while random access usage, togethter with any calls of seek method?","author":{"url":"https://github.com/Daniel-Alievsky","@type":"Person","name":"Daniel-Alievsky"},"datePublished":"2024-06-07T13:23:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/478/scijava-common/issues/478"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:344d8e2a-5132-3759-ef7d-0133494a58d3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E492:20C85F:6B604:92233:6969C5A6 |
| html-safe-nonce | 123028051a32db3c8861693ec3f22d8ceb8ae07ae70f03548d582b0e516da03f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDkyOjIwQzg1Rjo2QjYwNDo5MjIzMzo2OTY5QzVBNiIsInZpc2l0b3JfaWQiOiIyMDEwNTA1Nzk5NjkwNDcwODIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8fbf8daa0badc25fd9e85b5973345846aed45027c0677b32514c87947cca5cfe |
| hovercard-subject-tag | issue:2340452106 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/scijava-common/478/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a42e7cc2a3c68ef25bc75228ea173dd2574cfb8fd4f380b94b338ec8a452b15a/scijava/scijava-common/issues/478 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a42e7cc2a3c68ef25bc75228ea173dd2574cfb8fd4f380b94b338ec8a452b15a/scijava/scijava-common/issues/478 |
| og:image:alt | I tried to use WriteBufferDataHandle for optimizing writing TIFF, but it cannot be used: the simplest call out.seek(out.length()) (for writing to the end of the existing file) does not work. Just s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Daniel-Alievsky |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/scijava-common git https://github.com/scijava/scijava-common.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 3594497 |
| octolytics-dimension-repository_nwo | scijava/scijava-common |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3594497 |
| octolytics-dimension-repository_network_root_nwo | scijava/scijava-common |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width