mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8230531: API Doc for CharsetEncoder.maxBytesPerChar() should be clearer about BOMs
Reviewed-by: martin, alanb
This commit is contained in:
parent
8bc0885215
commit
5fba45641e
1 changed files with 9 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -455,7 +455,14 @@ public abstract class Charset$Coder$ {
|
|||
/**
|
||||
* Returns the maximum number of $otype$s that will be produced for each
|
||||
* $itype$ of input. This value may be used to compute the worst-case size
|
||||
* of the output buffer required for a given input sequence.
|
||||
* of the output buffer required for a given input sequence. This value
|
||||
* accounts for any necessary content-independent prefix or suffix
|
||||
#if[encoder]
|
||||
* $otype$s, such as byte-order marks.
|
||||
#end[encoder]
|
||||
#if[decoder]
|
||||
* $otype$s.
|
||||
#end[decoder]
|
||||
*
|
||||
* @return The maximum number of $otype$s that will be produced per
|
||||
* $itype$ of input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue