[ 
https://issues.apache.org/jira/browse/PDFBOX-4554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16851878#comment-16851878
 ] 

Tilman Hausherr commented on PDFBOX-4554:
-----------------------------------------

{quote}
Why do you not want to expose the ByteArrayInputStream(in, offset, length) 
constructor signature as part of the FilterInputStream constructor for 
COSFilterInputStream, and getSignedContent?
{quote}
Because I only add something to the API when I think it is useful. My 
impression is that your wish is based on a misunderstanding how 
{{getSignedContent()}} and {{COSFilterInputStream()}} work, so I'd prefer that 
you just correct your application code (if I'm right). It is true that adding 
to the API here doesn't hurt or break anything. But why add something that 
doesn't have a use case? People might get wrong ideas on how to use it.

> operations taking a byte[] need to allow for offset and length too
> ------------------------------------------------------------------
>
>                 Key: PDFBOX-4554
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4554
>             Project: PDFBox
>          Issue Type: Improvement
>            Reporter: Jason Pyeron
>            Priority: Major
>
> Without this, massive amounts of memory must be copied/allocated to "trim" 
> byte[].
> See forthcoming pull request.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to